38
|
1 /* Copyright: Eric Wing 2003 */
|
|
2
|
|
3 #ifndef SIMPLE_MUTEX_H
|
|
4 #define SIMPLE_MUTEX_H
|
|
5
|
|
6 #ifdef __cplusplus
|
|
7 extern "C" {
|
|
8 #endif
|
|
9
|
|
10
|
|
11 typedef struct SimpleMutex SimpleMutex;
|
|
12
|
|
13 SimpleMutex* SimpleMutex_CreateMutex(void);
|
|
14 void SimpleMutex_DestroyMutex(SimpleMutex* simple_mutex);
|
|
15 int SimpleMutex_LockMutex(SimpleMutex* simple_mutex);
|
|
16 void SimpleMutex_UnlockMutex(SimpleMutex* simple_mutex);
|
|
17
|
|
18
|
|
19 /* Ends C function definitions when using C++ */
|
|
20 #ifdef __cplusplus
|
|
21 }
|
|
22 #endif
|
|
23
|
|
24 #endif
|
|
25
|