41 lockImpl(sync->getYieldHandle());
44 template <
class YIELDING>
45 void Mutex::lockImpl(YIELDING&& yield)
~Guard()
Destructor. This will unlock the underlying mutex.
Definition: quantum_mutex_impl.h:108
Definition: quantum_buffer_impl.h:22
void unlock()
Unlock this mutex.
Definition: quantum_mutex_impl.h:60
Mutex()
Default constructor.
Definition: quantum_mutex_impl.h:29
std::shared_ptr< ICoroSync > Ptr
Definition: quantum_icoro_sync.h:36
~ReverseGuard()
Destroys this object and locks the underlying mutex.
Definition: quantum_mutex_impl.h:133
bool ownsLock() const
Determines if this object owns the underlying mutex.
Definition: quantum_mutex_impl.h:102
Guard(Mutex &mutex, bool tryLock=false)
Construct this object and lock the passed-in mutex.
Definition: quantum_mutex_impl.h:69
ReverseGuard(Mutex &mutex)
Construct this object and unlock the passed-in mutex.
Definition: quantum_mutex_impl.h:117
YieldingThreadDuration< std::chrono::microseconds > YieldingThread
Definition: quantum_yielding_thread.h:57
bool tryLock()
Tries to lock the mutex object.
Definition: quantum_mutex_impl.h:54
void unlock()
Unlocks the current object.
Definition: quantum_spinlock_impl.h:43
void lock()
Locks this mutex.
Definition: quantum_mutex_impl.h:33
bool tryLock()
Attempt to acquire the lock.
Definition: quantum_spinlock_impl.h:37