UNISTDX_BASE_SIMPLE_LOCK
template <class Mutex>
class sys::simple_lock

A lock guard with lock and unlock methods.

Mutex
mutex type

Types
  • using mutex_type = Mutex

    The type of mutex.

Methods
  • unlock() -> void

    Unlock the mutex.

  • lock() -> void

    Lock the mutex.

  • ~simple_lock()

    Destroy simple lock and unlock the mutex.

  • simple_lock(mutex_type & m)

    Construct simple lock for mutex m and lock the mutex.