Cuberite
A lightweight, fast and extensible game server for Minecraft
|
RAII for cCriticalSection - locks the CS on creation, unlocks on destruction. More...
#include <CriticalSection.h>
Public Member Functions | |
cCSLock (cCriticalSection &a_CS) | |
cCSLock (cCriticalSection *a_CS) | |
void | Lock (void) |
void | Unlock (void) |
~cCSLock () | |
Private Member Functions | |
DISALLOW_COPY_AND_ASSIGN (cCSLock) | |
Private Attributes | |
cCriticalSection * | m_CS |
bool | m_IsLocked |
RAII for cCriticalSection - locks the CS on creation, unlocks on destruction.
Definition at line 52 of file CriticalSection.h.
cCSLock::cCSLock | ( | cCriticalSection * | a_CS | ) |
Definition at line 66 of file CriticalSection.cpp.
cCSLock::cCSLock | ( | cCriticalSection & | a_CS | ) |
Definition at line 77 of file CriticalSection.cpp.
cCSLock::~cCSLock | ( | ) |
Definition at line 88 of file CriticalSection.cpp.
|
private |
void cCSLock::Lock | ( | void | ) |
Definition at line 101 of file CriticalSection.cpp.
void cCSLock::Unlock | ( | void | ) |
Definition at line 112 of file CriticalSection.cpp.
|
private |
Definition at line 54 of file CriticalSection.h.
|
private |
Definition at line 59 of file CriticalSection.h.