![]() |
Public API Reference |
![]() |
Helper that is a (non-recursive) mutex if _Lock is true
or does nothing if _Lock is false
.
More...
#include <csutil/threading/mutex.h>
Public Member Functions | |
bool | Lock () |
bool | TryLock () |
void | Unlock () |
Helper that is a (non-recursive) mutex if _Lock is true
or does nothing if _Lock is false
.
Intended to provide compile-time switching of locking behaviour.
bool CS::Threading::OptionalMutex< _Lock >::Lock | ( | ) | [inline] |
bool CS::Threading::OptionalMutex< _Lock >::TryLock | ( | ) | [inline] |
void CS::Threading::OptionalMutex< _Lock >::Unlock | ( | ) | [inline] |