UNISTDX_BASE_UNLOCK_GUARD
template <class Mutex>
class sys::unlock_guard

The inverse of standard lock guard.

Mutex
mutex type

Types
  • using mutex_type = Mutex

    The type of mutex.

Methods
  • unlock() -> void

    Unlock the mutex.

  • lock() -> void

    Lock the mutex.

  • ~unlock_guard()

    Destroy unlock guard and lock the mutex.

  • unlock_guard(mutex_type & m)explicit

    Construct unlock guard with mutex m and unlock the mutex.