#include <CriticalSection.h>
Impatient Gardian of block Simple and Secure CriticalSection or Mutex blocker Try set Lock in constructor and released by destructor. Does not wait lock is set.
Try Lock a critical section by reference
- Parameters
-
Try Lock a critical section by pointer
- Parameters
-
commore::TryLock::TryLock |
( |
Mutex & |
mtx | ) |
|
|
inline |
Try Lock a mutex by reference
- Parameters
-
commore::TryLock::TryLock |
( |
Mutex * |
mtx | ) |
|
|
inline |
Try Lock a mutex by pointer
- Parameters
-
commore::TryLock::~TryLock |
( |
| ) |
|
|
inline |
bool commore::TryLock::entered |
( |
| ) |
const |
|
inline |
- Returns
- true if lock is set
commore::TryLock::operator bool |
( |
| ) |
const |
|
inline |
- Returns
- true if lock is set
The documentation for this class was generated from the following file: