2017-12-12 15:12:07 +01:00
|
|
|
#ifndef LOCKUTIL_H
|
|
|
|
#define LOCKUTIL_H
|
|
|
|
|
2017-12-15 17:31:23 +01:00
|
|
|
// forward declarations
|
|
|
|
typedef struct SDL_mutex SDL_mutex;
|
|
|
|
typedef struct SDL_cond SDL_cond;
|
|
|
|
|
2019-03-02 20:09:56 +01:00
|
|
|
void
|
|
|
|
mutex_lock(SDL_mutex *mutex);
|
|
|
|
|
|
|
|
void
|
|
|
|
mutex_unlock(SDL_mutex *mutex);
|
|
|
|
|
|
|
|
void
|
|
|
|
cond_wait(SDL_cond *cond, SDL_mutex *mutex);
|
|
|
|
|
|
|
|
void
|
|
|
|
cond_signal(SDL_cond *cond);
|
2017-12-15 16:38:14 +01:00
|
|
|
|
2017-12-12 15:12:07 +01:00
|
|
|
#endif
|