41 Mutex* mutex_ {
nullptr};
84 std::deque<detail::Fiber*> waiters_;
A cooperative condition variable.
Definition condition_variable.hpp:21
Handle to a spawned fiber that returns a value.
Definition future.hpp:46
RAII lock guard for Mutex.
Definition mutex.hpp:27
Guard(Guard &&other) noexcept
Guard & operator=(const Guard &)=delete
Guard & operator=(Guard &&other) noexcept
Guard(const Guard &)=delete
A cooperative mutex that yields instead of blocking.
Definition mutex.hpp:21
void Lock()
Lock the mutex.
bool IsLocked() const noexcept
Check if the mutex is currently locked.
Definition mutex.hpp:75
Mutex & operator=(const Mutex &)=delete
Mutex(const Mutex &)=delete
bool TryLock()
Try to lock the mutex without yielding.
void Unlock()
Unlock the mutex.
Cooperative multitasking primitives built on cortex::Coroutine.
Definition condition_variable.hpp:13
Mutex::Guard Lock(Mutex &mutex)
Create a lock guard for the mutex.
Definition mutex.hpp:93