A critical section/mutual exclusion object. More...
#include <BeCriticalSection.h>
Public Member Functions | |
BeCriticalSection () | |
Constructs the critical section object. More... | |
~BeCriticalSection () | |
Destroys the critical section object. More... | |
void | Enter () |
Enters the critical section. More... | |
void | Leave () |
Leaves the critical section. More... | |
intptr_t | GetOwningThreadId () const |
Get the identifier of the thread that is currently in this critical section. More... | |
bool | GetIsValid () const |
False if creation failed. More... | |
Static Public Member Functions | |
static intptr_t | GetCurrentThreadId () |
Get the identifier of the current thread. More... | |
A critical section/mutual exclusion object.
Constructs the critical section object.
~BeCriticalSection | ( | ) |
Destroys the critical section object.
void Enter | ( | ) |
Enters the critical section.
|
static |
Get the identifier of the current thread.
bool GetIsValid | ( | ) | const |
False if creation failed.
intptr_t GetOwningThreadId | ( | ) | const |
Get the identifier of the thread that is currently in this critical section.
void Leave | ( | ) |
Leaves the critical section.