Scippy

UG

Ubiquity Generator framework

LockRAIIHelper Class Reference

Same as LockRAII but with additional members to implement the LOCKED macro. More...

#include <paraPthLock.h>

Inheritance diagram for LockRAIIHelper:
LockRAII

Public Member Functions

 LockRAIIHelper (Lock *l)
 
 LockRAIIHelper (Lock *l, char const *file, int line)
 
 operator bool () const
 
LockRAIIHelperoperator++ ()
 
- Public Member Functions inherited from LockRAII
 LockRAII (Lock *l)
 Constructor. The constructor calls l->lock() to acquire the lock. More...
 
 LockRAII (Lock *l, char const *file, int line)
 Constructor. The constructor calls l->lock(file,line) to acquire the lock. More...
 
 ~LockRAII ()
 Destructor. Releases the lock that was acquired in the constructor. More...
 

Private Member Functions

 LockRAIIHelper (LockRAIIHelper const &)
 
LockRAIIHelper const & operator= (LockRAIIHelper const &)
 

Private Attributes

int count
 

Detailed Description

Same as LockRAII but with additional members to implement the LOCKED macro.

Definition at line 237 of file paraPthLock.h.

Constructor & Destructor Documentation

◆ LockRAIIHelper() [1/3]

LockRAIIHelper ( LockRAIIHelper const &  )
private

◆ LockRAIIHelper() [2/3]

LockRAIIHelper ( Lock l)

Definition at line 250 of file paraPthLock.h.

◆ LockRAIIHelper() [3/3]

LockRAIIHelper ( Lock l,
char const *  file,
int  line 
)

Definition at line 258 of file paraPthLock.h.

Member Function Documentation

◆ operator bool()

operator bool ( ) const

Definition at line 268 of file paraPthLock.h.

References LockRAIIHelper::count.

◆ operator++()

LockRAIIHelper & operator++ ( )

Definition at line 274 of file paraPthLock.h.

References LockRAIIHelper::count.

◆ operator=()

LockRAIIHelper const & operator= ( LockRAIIHelper const &  )
private

Member Data Documentation

◆ count

int count
private

Definition at line 239 of file paraPthLock.h.

Referenced by LockRAIIHelper::operator bool(), and LockRAIIHelper::operator++().