19 Mutex(
const Mutex &) =
delete;
20 Mutex & operator=(
const Mutex &) =
delete;
RAII lock guard - locks on construction, unlocks on destruction.
Mutex & mutex
The mutex held by this guard.
MutexLock(Mutex &m)
Locks m until this guard goes out of scope.
A simple mutual-exclusion lock.
void unlock()
Releases the mutex. Must be called by the thread that locked it.
void * handle
Backend-assigned mutex handle.
friend class Cond
Cond::wait() needs the raw handle to pass to ThreadDriver::waitCond()
void lock()
Blocks until the mutex is acquired. Not recursive: locking twice from one thread deadlocks.