5 #include "Honey/Thread/Lock/platform/Mutex.h"
19 typedef platform::Mutex Super;
39 Handle&
handle() {
return Super::handle(); }
A scoped lock that references any lockable. Locks on construction and unlocks on destruction.
Definition: Mutex.h:10
Super::Handle Handle
Definition: Mutex.h:21
void lock(Locks &&...locks)
Lock all lockables safely without deadlocking.
Definition: Util.h:110
Mutex & operator=(const Mutex &)
Can't copy, silently does nothing.
Definition: Mutex.h:29
void lock()
Acquire the lock. Thread suspends until lock becomes available.
Definition: Mutex.h:32
UniqueLock< Mutex > Scoped
Definition: Mutex.h:22
bool tryLock()
Attempt to acquire the lock, returns immediately. Returns true if the lock was acquired, false otherwise.
Definition: Mutex.h:36
Mutex(const Mutex &)
Can't copy, silently inits to default.
Definition: Mutex.h:26
void unlock()
Release the lock.
Definition: Mutex.h:34
Handle & handle()
Get platform handle.
Definition: Mutex.h:39
A thread lock where the lock is acquired by suspending thread execution until it becomes available...
Definition: Mutex.h:17
Global Honeycomb namespace.
int tryLock(Lock &l, Locks &...ls)
Try to lock all lockables. Locks either all or none.
Definition: Util.h:26