tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches

Mutual exclusion primitives. More...

Classes

struct  adopt_lock_t
 Empty struct tag types used to specify locking strategy for etl::lock_guard, etl::scoped_lock, etl::unique_lock, and etl::shared_lock. More...
 
struct  defer_lock_t
 Empty struct tag types used to specify locking strategy for etl::lock_guard, etl::scoped_lock, etl::unique_lock, and etl::shared_lock. More...
 
struct  lock_guard< MutexT >
 The struct lock_guard is a mutex wrapper that provides a convenient RAII-style mechanism for owning a mutex for the duration of a scoped block. When a lock_guard object is created, it attempts to take ownership of the mutex it is given. When control leaves the scope in which the lock_guard object was created, the lock_guard is destructed and the mutex is released. The lock_guard struct is non-copyable. More...
 
struct  try_to_lock_t
 Empty struct tag types used to specify locking strategy for etl::lock_guard, etl::scoped_lock, etl::unique_lock, and etl::shared_lock. More...
 
struct  unique_lock< Mutex >
 The struct unique_lock is a general-purpose mutex ownership wrapper allowing deferred locking, time-constrained attempts at locking, recursive locking, transfer of lock ownership, and use with condition variables. More...
 

Variables

constexpr auto adopt_lock = adopt_lock_t{}
 Instances of empty struct tag types. See adopt_lock_t.
 
constexpr auto defer_lock = defer_lock_t{}
 Instances of empty struct tag types. See defer_lock_t.
 
constexpr auto try_to_lock = try_to_lock_t{}
 Instances of empty struct tag types. See try_to_lock_t.
 

Detailed Description

Mutual exclusion primitives.

Variable Documentation

◆ adopt_lock

auto adopt_lock = adopt_lock_t{}
related

Instances of empty struct tag types. See adopt_lock_t.

◆ defer_lock

auto defer_lock = defer_lock_t{}
related

Instances of empty struct tag types. See defer_lock_t.

◆ try_to_lock

auto try_to_lock = try_to_lock_t{}
related

Instances of empty struct tag types. See try_to_lock_t.