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