casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Friends | List of all members
casa::sdfiller::Mutex Class Reference

#include <PThreadUtil.h>

Public Member Functions

 Mutex ()
 
 ~Mutex () noexcept(false)
 
int lock ()
 
int unlock ()
 
int try_lock ()
 

Protected Attributes

pthread_mutex_t mutex_
 

Friends

class PCondition
 

Detailed Description

Definition at line 23 of file PThreadUtil.h.

Constructor & Destructor Documentation

casa::sdfiller::Mutex::Mutex ( )
inline

cout << "Mutex::Mutex()" << endl;

Definition at line 26 of file PThreadUtil.h.

References THROW_IF.

casa::sdfiller::Mutex::~Mutex ( )
inlinenoexcept

cout << "Mutex::~Mutex()" << endl;

Definition at line 32 of file PThreadUtil.h.

References THROW_IF.

Member Function Documentation

int casa::sdfiller::Mutex::lock ( )
inline

cout << "Mutex::lock()" << endl;

Definition at line 37 of file PThreadUtil.h.

References THROW_IF.

int casa::sdfiller::Mutex::try_lock ( )
inline

cout << "Mutex::try_lock()" << endl;

Definition at line 49 of file PThreadUtil.h.

int casa::sdfiller::Mutex::unlock ( )
inline

cout << "Mutex::unlock()" << endl;

Definition at line 43 of file PThreadUtil.h.

References THROW_IF.

Friends And Related Function Documentation

friend class PCondition
friend

Definition at line 57 of file PThreadUtil.h.

Member Data Documentation

pthread_mutex_t casa::sdfiller::Mutex::mutex_
protected

Definition at line 55 of file PThreadUtil.h.


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