Ark Server API (ASA) - Wiki
|
#include <WindowsCriticalSection.h>
Public Member Functions | |
FWindowsCriticalSection (const FWindowsCriticalSection &)=delete | |
FWindowsCriticalSection & | operator= (const FWindowsCriticalSection &)=delete |
FORCEINLINE | FWindowsCriticalSection () |
FORCEINLINE | ~FWindowsCriticalSection () |
FORCEINLINE void | Lock () |
FORCEINLINE bool | TryLock () |
FORCEINLINE void | Unlock () |
Private Attributes | |
Windows::CRITICAL_SECTION | CriticalSection |
This is the Windows version of a critical section. It uses an aggregate CRITICAL_SECTION to implement its locking.
Definition at line 15 of file WindowsCriticalSection.h.
|
delete |
|
inline |
Constructor that initializes the aggregated critical section
Definition at line 24 of file WindowsCriticalSection.h.
|
inline |
Destructor cleaning up the critical section
Definition at line 34 of file WindowsCriticalSection.h.
|
inline |
Locks the critical section
Definition at line 42 of file WindowsCriticalSection.h.
|
delete |
|
inline |
Attempt to take a lock and returns whether or not a lock was taken.
Definition at line 52 of file WindowsCriticalSection.h.
|
inline |
Releases the lock on the critical section
Definition at line 64 of file WindowsCriticalSection.h.
|
private |
The windows specific critical section
Definition at line 73 of file WindowsCriticalSection.h.