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


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 ( )

Definition at line 70 of file threads.h.

Member Function Documentation

◆ Lock()

void dabc::Mutex::Lock ( )

Definition at line 71 of file threads.h.

◆ Unlock()

void dabc::Mutex::Unlock ( )

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

Definition at line 62 of file threads.h.

◆ UnlockGuard

friend class UnlockGuard

Definition at line 63 of file threads.h.

◆ Condition

friend class Condition

Definition at line 64 of file threads.h.

◆ MutexPtr

friend class MutexPtr

Definition at line 65 of file threads.h.

Field Documentation

◆ fMutex

pthread_mutex_t dabc::Mutex::fMutex

Definition at line 67 of file threads.h.

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