13
14
15
19
20
26
27
31 pthread_mutexattr_t MutexAttributes;
32 pthread_mutexattr_init(&MutexAttributes);
33 pthread_mutexattr_settype(&MutexAttributes, PTHREAD_MUTEX_RECURSIVE);
34 pthread_mutex_init(&Mutex, &MutexAttributes);
35 pthread_mutexattr_destroy(&MutexAttributes);
39
40
43 pthread_mutex_destroy(&Mutex);
47
48
51 pthread_mutex_lock(&Mutex);
55
56
57
58
61 return 0 == pthread_mutex_trylock(&Mutex);
65
66
69 pthread_mutex_unlock(&Mutex);
FORCEINLINE void Lock(void)
FORCEINLINE bool TryLock()
FORCEINLINE ~FPThreadsCriticalSection(void)
FORCEINLINE void Unlock(void)
FORCEINLINE FPThreadsCriticalSection(void)
FPThreadsCriticalSection & operator=(const FPThreadsCriticalSection &)
FPThreadsCriticalSection(const FPThreadsCriticalSection &)