mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 09:21:12 +00:00
45d93544a6
git-svn-id: https://svn.eduke32.com/eduke32@1625 1a8010ca-5511-0410-912e-c29ae57300e0
21 lines
No EOL
367 B
C
21 lines
No EOL
367 B
C
#ifndef __mutex_h__
|
|
#define __mutex_h__
|
|
|
|
#if defined(_WIN32)
|
|
#include <windows.h>
|
|
#include <process.h>
|
|
#else
|
|
#include <pthread.h>
|
|
#endif
|
|
|
|
#if defined(_WIN32)
|
|
typedef HANDLE mutex_t;
|
|
#else
|
|
typedef pthread_mutex_t mutex_t;
|
|
#endif
|
|
|
|
extern int32_t mutex_init(mutex_t *mutex);
|
|
extern int32_t mutex_lock(mutex_t *mutex);
|
|
extern int32_t mutex_unlock(mutex_t *mutex);
|
|
|
|
#endif |