DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Protected Attributes
dabc::LockGuard Class Reference

Lock guard for posix mutex. More...

#include <dabc/threads.h>

Public Member Functions

 LockGuard (const Mutex &mutex)
 
 LockGuard (const Mutex &mutex, bool)
 
 LockGuard (const Mutex *mutex)
 
 LockGuard (const Mutex *mutex, bool)
 
 LockGuard (pthread_mutex_t &mutex)
 
 LockGuard (pthread_mutex_t &mutex, bool)
 
 LockGuard (pthread_mutex_t *mutex)
 
 LockGuard (pthread_mutex_t *mutex, bool)
 
bool TryingLock ()
 
 ~LockGuard ()
 

Protected Attributes

MutexPtr fMutex
 

Detailed Description

Lock guard for posix mutex.

Definition at line 127 of file threads.h.

Constructor & Destructor Documentation

◆ LockGuard() [1/8]

dabc::LockGuard::LockGuard ( pthread_mutex_t &  mutex)
inline

Definition at line 131 of file threads.h.

◆ LockGuard() [2/8]

dabc::LockGuard::LockGuard ( pthread_mutex_t *  mutex)
inline

Definition at line 136 of file threads.h.

◆ LockGuard() [3/8]

dabc::LockGuard::LockGuard ( const Mutex mutex)
inline

Definition at line 141 of file threads.h.

◆ LockGuard() [4/8]

dabc::LockGuard::LockGuard ( const Mutex mutex)
inline

Definition at line 146 of file threads.h.

◆ LockGuard() [5/8]

dabc::LockGuard::LockGuard ( pthread_mutex_t &  mutex,
bool   
)
inline

Definition at line 152 of file threads.h.

◆ LockGuard() [6/8]

dabc::LockGuard::LockGuard ( pthread_mutex_t *  mutex,
bool   
)
inline

Definition at line 156 of file threads.h.

◆ LockGuard() [7/8]

dabc::LockGuard::LockGuard ( const Mutex mutex,
bool   
)
inline

Definition at line 160 of file threads.h.

◆ LockGuard() [8/8]

dabc::LockGuard::LockGuard ( const Mutex mutex,
bool   
)
inline

Definition at line 164 of file threads.h.

◆ ~LockGuard()

dabc::LockGuard::~LockGuard ( )
inline

Definition at line 169 of file threads.h.

Member Function Documentation

◆ TryingLock()

bool dabc::LockGuard::TryingLock ( )
inline

Definition at line 174 of file threads.h.

Field Documentation

◆ fMutex

MutexPtr dabc::LockGuard::fMutex
protected

Definition at line 129 of file threads.h.


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