rtengine/include/threading.h
Kevin Trogant 63e3f973b2 feat: config variables, mutex abstraction
- Mutex abstraction (create, destroy, lock, unlock)
- Config variables (cvars)
2023-10-14 00:15:05 +02:00

19 lines
296 B
C

#ifndef VY_THREADING_H
#define VY_THREADING_H
/* platform independent threading */
#include <stdbool.h>
typedef struct vy_mutex_s vy_mutex;
vy_mutex *vyCreateMutex(void);
void vyDestroyMutex(vy_mutex *mutex);
bool vyLockMutex(vy_mutex *mutex);
bool vyUnlockMutex(vy_mutex *mutex);
#endif