Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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 199 of file util.h.

Constructor & Destructor Documentation

◆ UnlockGuard()

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

Definition at line 201 of file util.h.

◆ ~UnlockGuard()

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

Definition at line 202 of file util.h.

Member Data Documentation

◆ m_lock

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

Definition at line 203 of file util.h.


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