Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
reverse_lock< Lock > Class Template Reference

An RAII-style reverse lock. More...

#include <reverselock.h>

Collaboration diagram for reverse_lock< Lock >:
[legend]

Public Member Functions

 reverse_lock (Lock &_lock)
 
 ~reverse_lock ()
 

Private Member Functions

 reverse_lock (reverse_lock const &)
 
reverse_lockoperator= (reverse_lock const &)
 

Private Attributes

Lock & lock
 
Lock templock
 

Detailed Description

template<typename Lock>
class reverse_lock< Lock >

An RAII-style reverse lock.

Unlocks on construction and locks on destruction.

Definition at line 12 of file reverselock.h.

Constructor & Destructor Documentation

template<typename Lock>
reverse_lock< Lock >::reverse_lock ( Lock &  _lock)
inlineexplicit

Definition at line 16 of file reverselock.h.

Here is the caller graph for this function:

template<typename Lock>
reverse_lock< Lock >::~reverse_lock ( )
inline

Definition at line 21 of file reverselock.h.

Here is the call graph for this function:

template<typename Lock>
reverse_lock< Lock >::reverse_lock ( reverse_lock< Lock > const &  )
private

Member Function Documentation

template<typename Lock>
reverse_lock& reverse_lock< Lock >::operator= ( reverse_lock< Lock > const &  )
private

Here is the caller graph for this function:

Member Data Documentation

template<typename Lock>
Lock& reverse_lock< Lock >::lock
private

Definition at line 30 of file reverselock.h.

template<typename Lock>
Lock reverse_lock< Lock >::templock
private

Definition at line 31 of file reverselock.h.


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