Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

reverse_lock< Lock > Class Template Reference

An RAII-style reverse lock. More...

#include <reverselock.h>

+ Collaboration diagram for reverse_lock< Lock >:

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

◆ reverse_lock() [1/2]

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

Definition at line 16 of file reverselock.h.

References reverse_lock< Lock >::templock.

◆ ~reverse_lock()

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

Definition at line 21 of file reverselock.h.

References reverse_lock< Lock >::lock, and reverse_lock< Lock >::templock.

◆ reverse_lock() [2/2]

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

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ lock

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

Definition at line 30 of file reverselock.h.

Referenced by reverse_lock< Lock >::~reverse_lock().

◆ templock

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

The documentation for this class was generated from the following file:
Released under the MIT license