CS::Threading::OptionalMutex< _Lock > Class Template Reference
Helper that is a (non-recursive) mutex if _Lock istrue 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] |
template<bool _Lock>
| bool CS::Threading::OptionalMutex< _Lock >::TryLock | ( | ) | [inline] |
template<bool _Lock>
| void CS::Threading::OptionalMutex< _Lock >::Unlock | ( | ) | [inline] |
The documentation for this class was generated from the following file:
- csutil/threading/mutex.h
Generated for Crystal Space 1.4.0 by doxygen 1.5.8
