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

posix pthread mutex More...

#include <dabc/threads.h>

Public Member Functions

bool IsLocked ()
 
void Lock ()
 
 Mutex (bool recursive=false)
 
bool TryLock ()
 
void Unlock ()
 
 ~Mutex ()
 

Protected Attributes

pthread_mutex_t fMutex
 

Friends

class Condition
 
class LockGuard
 
class MutexPtr
 
class UnlockGuard
 

Detailed Description

posix pthread mutex

Definition at line 61 of file threads.h.

Constructor & Destructor Documentation

◆ Mutex()

dabc::Mutex::Mutex ( bool  recursive = false)

Definition at line 44 of file threads.cxx.

◆ ~Mutex()

dabc::Mutex::~Mutex ( )
inline

Definition at line 70 of file threads.h.

Member Function Documentation

◆ Lock()

void dabc::Mutex::Lock ( )
inline

Definition at line 71 of file threads.h.

◆ Unlock()

void dabc::Mutex::Unlock ( )
inline

Definition at line 72 of file threads.h.

◆ TryLock()

bool dabc::Mutex::TryLock ( )

Definition at line 57 of file threads.cxx.

◆ IsLocked()

bool dabc::Mutex::IsLocked ( )

Definition at line 63 of file threads.cxx.

Friends And Related Function Documentation

◆ LockGuard

friend class LockGuard
friend

Definition at line 62 of file threads.h.

◆ UnlockGuard

friend class UnlockGuard
friend

Definition at line 63 of file threads.h.

◆ Condition

friend class Condition
friend

Definition at line 64 of file threads.h.

◆ MutexPtr

friend class MutexPtr
friend

Definition at line 65 of file threads.h.

Field Documentation

◆ fMutex

pthread_mutex_t dabc::Mutex::fMutex
protected

Definition at line 67 of file threads.h.


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