Abstraction of a critical section. A critical section object provides synchronization similar to that provided by a mutex object, except that a critical section can be used only by the threads of a single process. Event, mutex, and semaphore objects can also be used in a single-process application, but critical section objects provide a slightly faster, more efficient mechanism for mutual-exclusion synchronization. More...
Abstraction of a critical section. A critical section object provides synchronization similar to that provided by a mutex object, except that a critical section can be used only by the threads of a single process. Event, mutex, and semaphore objects can also be used in a single-process application, but critical section objects provide a slightly faster, more efficient mechanism for mutual-exclusion synchronization.
Public Member Methods | |
CriticalSection () | |
Default constructor. More... | |
~CriticalSection () | |
Destructor. More... | |
void | Lock () |
Locks the CriticalSection. More... | |
void | Unlock () |
Locks the CriticalSection. More... | |
void | SetIsWaitSectionEnabled (bool enable) |
Enable the section wait enter or not. More... | |
bool | GetIsWaitSectionEnabled () |
Query if the section wait has been enabled. More... | |
CriticalSection | ( | ) |
Default constructor.
~CriticalSection | ( | ) |
Destructor.
bool GetIsWaitSectionEnabled | ( | ) |
Query if the section wait has been enabled.
Default : Enabled
|
virtual |
Locks the CriticalSection.
Implements ILockable.
void SetIsWaitSectionEnabled | ( | bool | enable | ) |
Enable the section wait enter or not.
enable | enable. |
Default : Enabled
|
virtual |
Locks the CriticalSection.
Implements ILockable.