Shaka Player Embedded
|
#include <mutex.h>
Public Member Functions | |
DebugMutex (const std::string &name) | |
~DebugMutex () override | |
std::thread::id | GetProvider () const override |
void | lock () |
bool | try_lock () |
void | unlock () |
void | lock_shared () |
bool | try_lock_shared () |
void | unlock_shared () |
![]() | |
Waitable (const std::string &name) | |
virtual | ~Waitable () |
std::string | name () const |
A wrapper around a mutex. This exists to provide debug information and to track deadlocks.
This implements the Mutex (and Lockable) concept so it can be used in std::unique_lock<T>. It can also be used in std::condition_variable_any, but it is suggested to use a ThreadEvent instead (to track deadlocks).
If _Mutex implements the SharedMutex concept, so does this.
|
inlineexplicit |
|
inlineoverride |
|
inlineoverridevirtual |
Implements shaka::Waitable.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |