Bitcoin Core 29.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
mp::UnlockGuard< Lock > Struct Template Reference

Analog to std::lock_guard that unlocks instead of locks. More...

#include <util.h>

Public Member Functions

 UnlockGuard (Lock &lock)
 
 ~UnlockGuard ()
 

Public Attributes

Lock & m_lock
 

Detailed Description

template<typename Lock>
struct mp::UnlockGuard< Lock >

Analog to std::lock_guard that unlocks instead of locks.

Definition at line 135 of file util.h.

Constructor & Destructor Documentation

◆ UnlockGuard()

template<typename Lock >
mp::UnlockGuard< Lock >::UnlockGuard ( Lock &  lock)
inline

Definition at line 137 of file util.h.

◆ ~UnlockGuard()

template<typename Lock >
mp::UnlockGuard< Lock >::~UnlockGuard ( )
inline

Definition at line 138 of file util.h.

Member Data Documentation

◆ m_lock

template<typename Lock >
Lock& mp::UnlockGuard< Lock >::m_lock

Definition at line 139 of file util.h.


The documentation for this struct was generated from the following file: