#include <PThreadUtil.h>
Public Member Functions | |
PCondition (Mutex *mutex) | |
virtual | ~PCondition () |
int | lock () |
int | unlock () |
int | wait () |
int | signal () |
Private Attributes | |
pthread_mutex_t * | mutex_ |
pthread_cond_t | cond_ |
Definition at line 59 of file PThreadUtil.h.
casa::sdfiller::PCondition::PCondition | ( | Mutex * | mutex | ) | [inline] |
Definition at line 61 of file PThreadUtil.h.
virtual casa::sdfiller::PCondition::~PCondition | ( | ) | [inline, virtual] |
Definition at line 68 of file PThreadUtil.h.
int casa::sdfiller::PCondition::lock | ( | ) | [inline] |
cout << "PCondition::lock()" << endl;
Definition at line 73 of file PThreadUtil.h.
References mutex_.
int casa::sdfiller::PCondition::signal | ( | ) | [inline] |
cout << "PCondition::signal()" << endl;
Definition at line 90 of file PThreadUtil.h.
References cond_, and THROW_IF.
Referenced by casa::sdfiller::ProducerConsumerModelContext< DataType, BufferSize >::consumer_signal(), and casa::sdfiller::ProducerConsumerModelContext< DataType, BufferSize >::producer_signal().
int casa::sdfiller::PCondition::unlock | ( | ) | [inline] |
cout << "PCondition::unlock()" << endl;
Definition at line 78 of file PThreadUtil.h.
References mutex_.
int casa::sdfiller::PCondition::wait | ( | ) | [inline] |
cout << "PCondition::wait()" << endl;
Definition at line 83 of file PThreadUtil.h.
References cond_, mutex_, and THROW_IF.
Referenced by casa::sdfiller::ProducerConsumerModelContext< DataType, BufferSize >::consumer_wait(), and casa::sdfiller::ProducerConsumerModelContext< DataType, BufferSize >::producer_wait().
pthread_cond_t casa::sdfiller::PCondition::cond_ [private] |
Definition at line 98 of file PThreadUtil.h.
Referenced by PCondition(), signal(), wait(), and ~PCondition().
pthread_mutex_t* casa::sdfiller::PCondition::mutex_ [private] |
Definition at line 97 of file PThreadUtil.h.