]>
Commit | Line | Data |
---|---|---|
1815bff5 A |
1 | |
2 | #ifndef _PTLOCK_H_ | |
3 | #define _PTLOCK_H_ | |
4 | ||
5 | #ifdef __cplusplus | |
6 | extern "C" { | |
7 | #endif | |
8 | ||
9 | #include <CoreFoundation/CFBase.h> | |
10 | #include <pthread.h> | |
11 | ||
12 | typedef struct __PTLock * PTLockRef; | |
13 | ||
14 | PTLockRef PTLockCreate(void); | |
15 | void PTLockFree(PTLockRef lock); | |
16 | ||
17 | Boolean PTLockTryLock(PTLockRef lock); | |
18 | void PTLockTakeLock(PTLockRef lock); | |
19 | void PTLockUnlock(PTLockRef lock); | |
20 | ||
21 | #ifdef __cplusplus | |
22 | } | |
23 | #endif | |
24 | #endif _PTLOCK_H_ | |
25 |