37 mutex_init(&m_handle);
43 mutex_destroy(&m_handle);
46 mutex_t* native_handle()
53 if (mutex_trylock(&m_handle))
63 mutex_lock(&m_handle);
69 if (mutex_trylock(&m_handle))
74 mutex_unlock(&m_handle);
76 mutex_unlock(&m_handle);
82 if (mutex_trylock(&m_handle))
84 for (
unsigned i = m_lockCount; i > 0; --i)
85 mutex_unlock(&m_handle);
87 mutex_unlock(&m_handle);
92 Mutex(
const Mutex& other) =
delete;
93 Mutex& operator=(
const Mutex& other) =
delete;