|  | Ark Server API (ASA) - Wiki
    | 
#include <PThreadCriticalSection.h>
| Public Member Functions | |
| FORCEINLINE | FPThreadsCriticalSection (void) | 
| FORCEINLINE | ~FPThreadsCriticalSection (void) | 
| FORCEINLINE void | Lock (void) | 
| FORCEINLINE bool | TryLock () | 
| FORCEINLINE void | Unlock (void) | 
| Private Member Functions | |
| FPThreadsCriticalSection (const FPThreadsCriticalSection &) | |
| FPThreadsCriticalSection & | operator= (const FPThreadsCriticalSection &) | 
| Private Attributes | |
| pthread_mutex_t | Mutex | 
This is the PThreads version of a critical section. It uses pthreads to implement its locking.
Definition at line 16 of file PThreadCriticalSection.h.
| 
 | inline | 
Constructor that initializes the aggregated critical section
Definition at line 28 of file PThreadCriticalSection.h.
| 
 | inline | 
Destructor cleaning up the critical section
Definition at line 41 of file PThreadCriticalSection.h.
| 
 | private | 
| 
 | inline | 
Locks the critical section
Definition at line 49 of file PThreadCriticalSection.h.
| 
 | private | 
| 
 | inline | 
Attempt to take a lock and returns whether or not a lock was taken.
Definition at line 59 of file PThreadCriticalSection.h.
| 
 | inline | 
Releases the lock on the critical seciton
Definition at line 67 of file PThreadCriticalSection.h.
| 
 | private | 
The pthread-specific critical section
Definition at line 21 of file PThreadCriticalSection.h.