This is the PThreads version of a critical section. 更多...
#include <PThreadCriticalSection.h>
Public 成员函数 | |
| FORCEINLINE | FPThreadsCriticalSection (void) |
| Constructor that initializes the aggregated critical section | |
| FORCEINLINE void | Lock (void) |
| Locks the critical section | |
| FORCEINLINE bool | TryLock () |
| Attempt to take a lock and returns whether or not a lock was taken. 更多... | |
| FORCEINLINE void | Unlock (void) |
| Releases the lock on the critical seciton | |
| FORCEINLINE | ~FPThreadsCriticalSection (void) |
| Destructor cleaning up the critical section | |
This is the PThreads version of a critical section.
It uses pthreads to implement its locking.
|
inline |
Attempt to take a lock and returns whether or not a lock was taken.