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

#include <PThreadUtil.h>

Public Member Functions

 PCondition (Mutex *mutex)
 
virtual ~PCondition () noexcept(false)
 
int lock ()
 
int unlock ()
 
int wait ()
 
int signal ()
 

Private Attributes

pthread_mutex_t * mutex_
 
pthread_cond_t cond_
 

Detailed Description

Definition at line 60 of file PThreadUtil.h.

Constructor & Destructor Documentation

casa::sdfiller::PCondition::PCondition ( Mutex mutex)
inline

Definition at line 62 of file PThreadUtil.h.

References THROW_IF.

virtual casa::sdfiller::PCondition::~PCondition ( )
inlinevirtualnoexcept

Definition at line 69 of file PThreadUtil.h.

References THROW_IF.

Member Function Documentation

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

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

Definition at line 74 of file PThreadUtil.h.

int casa::sdfiller::PCondition::signal ( )
inline

cout << "PCondition::signal()" << endl;

Definition at line 91 of file PThreadUtil.h.

References THROW_IF.

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

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

Definition at line 79 of file PThreadUtil.h.

int casa::sdfiller::PCondition::wait ( )
inline

cout << "PCondition::wait()" << endl;

Definition at line 84 of file PThreadUtil.h.

References THROW_IF.

Member Data Documentation

pthread_cond_t casa::sdfiller::PCondition::cond_
private

Definition at line 99 of file PThreadUtil.h.

pthread_mutex_t* casa::sdfiller::PCondition::mutex_
private

Definition at line 98 of file PThreadUtil.h.


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