CS::Threading::OptionalMutex< _Lock > Class Template 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 () |
Detailed Description
template<bool _Lock>
class CS::Threading::OptionalMutex< _Lock >
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.
Definition at line 125 of file mutex.h.
Member Function Documentation
template<bool _Lock>
bool CS::Threading::OptionalMutex< _Lock >::Lock | ( | ) | [inline] |
- See also:
- Mutex::Lock
template<bool _Lock>
bool CS::Threading::OptionalMutex< _Lock >::TryLock | ( | ) | [inline] |
- See also:
- Mutex::TryLock
template<bool _Lock>
void CS::Threading::OptionalMutex< _Lock >::Unlock | ( | ) | [inline] |
- See also:
- Mutex::Unlock
The documentation for this class was generated from the following file:
- csutil/threading/mutex.h
Generated for Crystal Space 2.0 by doxygen 1.6.1