#include <PThreadUtil.h>
Public Member Functions | |
Mutex () | |
~Mutex () | |
int | lock () |
int | unlock () |
int | try_lock () |
Protected Attributes | |
pthread_mutex_t | mutex_ |
Friends | |
class | PCondition |
Definition at line 23 of file PThreadUtil.h.
casa::sdfiller::Mutex::Mutex | ( | ) | [inline] |
cout << "Mutex::Mutex()" << endl;
Definition at line 25 of file PThreadUtil.h.
casa::sdfiller::Mutex::~Mutex | ( | ) | [inline] |
cout << "Mutex::~Mutex()" << endl;
Definition at line 31 of file PThreadUtil.h.
int casa::sdfiller::Mutex::lock | ( | ) | [inline] |
cout << "Mutex::lock()" << endl;
Definition at line 36 of file PThreadUtil.h.
References mutex_, and THROW_IF.
Referenced by casa::sdfiller::ProducerConsumerModelContext< DataType, BufferSize >::lock().
int casa::sdfiller::Mutex::try_lock | ( | ) | [inline] |
cout << "Mutex::try_lock()" << endl;
Definition at line 48 of file PThreadUtil.h.
References mutex_.
Referenced by casa::sdfiller::ProducerConsumerModelContext< DataType, BufferSize >::try_lock().
int casa::sdfiller::Mutex::unlock | ( | ) | [inline] |
cout << "Mutex::unlock()" << endl;
Definition at line 42 of file PThreadUtil.h.
References mutex_, and THROW_IF.
Referenced by casa::sdfiller::ProducerConsumerModelContext< DataType, BufferSize >::unlock().
friend class PCondition [friend] |
Definition at line 56 of file PThreadUtil.h.
pthread_mutex_t casa::sdfiller::Mutex::mutex_ [protected] |
Definition at line 54 of file PThreadUtil.h.
Referenced by lock(), Mutex(), try_lock(), unlock(), and ~Mutex().