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>

Collaboration diagram for mp::UnlockGuard< Lock >:
[legend]

Public Member Functions

 UnlockGuard (Lock &lock)
 
 ~UnlockGuard ()
 

Public Attributes

Lockm_lock
 

Detailed Description

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

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

Definition at line 187 of file util.h.

Constructor & Destructor Documentation

◆ UnlockGuard()

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

Definition at line 189 of file util.h.

Here is the call graph for this function:

◆ ~UnlockGuard()

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

Definition at line 190 of file util.h.

Here is the call graph for this function:

Member Data Documentation

◆ m_lock

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

Definition at line 191 of file util.h.


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