![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
RAII-style semaphore lock. More...
#include <sync.h>
Public Member Functions | |
void | Acquire () |
void | Release () |
bool | TryAcquire () |
void | MoveTo (CSemaphoreGrant &grant) |
CSemaphoreGrant () | |
CSemaphoreGrant (CSemaphore &sema, bool fTry=false) | |
~CSemaphoreGrant () | |
operator bool () | |
Private Attributes | |
CSemaphore * | sem |
bool | fHaveGrant |
|
inline |
Definition at line 245 of file sync.h.
References Acquire(), and TryAcquire().
|
inline |
|
inline |
Definition at line 215 of file sync.h.
References CSemaphore::wait().
Referenced by CSemaphoreGrant().
|
inline |
Definition at line 235 of file sync.h.
References fHaveGrant, Release(), and sem.
Referenced by OpenNetworkConnection().
|
inline |
Definition at line 256 of file sync.h.
References fHaveGrant.
|
inline |
Definition at line 222 of file sync.h.
References CSemaphore::post().
Referenced by MoveTo(), ThreadSocketHandler(), and ~CSemaphoreGrant().
|
inline |
Definition at line 229 of file sync.h.
References fHaveGrant, and CSemaphore::try_wait().
Referenced by CSemaphoreGrant().
|
private |
Definition at line 212 of file sync.h.
Referenced by MoveTo(), operator bool(), and TryAcquire().
|
private |