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

Pointer on posix pthread mutex More...

#include <dabc/threads.h>

Public Member Functions

void clear ()
 
bool IsLocked ()
 
void Lock ()
 
 MutexPtr (const Mutex &mutex)
 
 MutexPtr (const Mutex *mutex)
 
 MutexPtr (const MutexPtr &src)
 
 MutexPtr (pthread_mutex_t &mutex)
 
 MutexPtr (pthread_mutex_t *mutex)
 
bool null () const
 
bool TryLock ()
 
void Unlock ()
 
 ~MutexPtr ()
 

Protected Attributes

pthread_mutex_t * fMutex
 

Detailed Description

Pointer on posix pthread mutex

Definition at line 84 of file threads.h.

Constructor & Destructor Documentation

◆ MutexPtr() [1/5]

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

Definition at line 88 of file threads.h.

◆ MutexPtr() [2/5]

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

Definition at line 89 of file threads.h.

◆ MutexPtr() [3/5]

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

Definition at line 90 of file threads.h.

◆ MutexPtr() [4/5]

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

Definition at line 91 of file threads.h.

◆ MutexPtr() [5/5]

dabc::MutexPtr::MutexPtr ( const MutexPtr src)
inline

Definition at line 92 of file threads.h.

◆ ~MutexPtr()

dabc::MutexPtr::~MutexPtr ( )
inline

Definition at line 94 of file threads.h.

Member Function Documentation

◆ null()

bool dabc::MutexPtr::null ( ) const
inline

Definition at line 96 of file threads.h.

◆ clear()

void dabc::MutexPtr::clear ( )
inline

Definition at line 97 of file threads.h.

◆ Lock()

void dabc::MutexPtr::Lock ( )
inline

Definition at line 99 of file threads.h.

◆ Unlock()

void dabc::MutexPtr::Unlock ( )
inline

Definition at line 100 of file threads.h.

◆ TryLock()

bool dabc::MutexPtr::TryLock ( )

Definition at line 73 of file threads.cxx.

◆ IsLocked()

bool dabc::MutexPtr::IsLocked ( )

Definition at line 79 of file threads.cxx.

Field Documentation

◆ fMutex

pthread_mutex_t* dabc::MutexPtr::fMutex
protected

Definition at line 86 of file threads.h.


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