31template <typename Mutex>
58template <
typename Mutex>
117 bool try_lock_until(roo_time::Uptime tp);
122 bool try_lock_for(roo_time::Duration duration);
135 bool owns_lock() const noexcept;
138 explicit operator
bool() const noexcept;
Mutex mutex_type
Type of wrapped mutex.
~lock_guard()
Releases mutex on destruction.
lock_guard(mutex_type &mutex)
Acquires mutex on construction.
Mutual exclusion primitive.
bool try_lock()
Attempts to acquire the mutex without blocking.
void lock()
Blocks until the mutex is acquired.
mutex() noexcept
Constructs a mutex.
void unlock()
Releases the mutex.
unique_lock() noexcept
Constructs an empty lock not associated with any mutex.
Mutex mutex_type
Type of wrapped mutex.