Version: 8.3.0
YACS::BASES::ConditionPT Class Reference

#include <MutexPT.hxx>

Collaboration diagram for YACS::BASES::ConditionPT:

Public Member Functions

 ConditionPT ()
 
 ~ConditionPT ()
 
void notify_one ()
 
void notify_all ()
 
void wait (MutexPT &mutex)
 

Private Attributes

pthread_cond_t _cond
 

Detailed Description

Definition at line 47 of file MutexPT.hxx.

Constructor & Destructor Documentation

ConditionPT::ConditionPT ( )

Definition at line 46 of file MutexPT.cxx.

References _cond.

47 {
48  pthread_cond_init(&_cond, NULL);
49 }
ConditionPT::~ConditionPT ( )

Definition at line 51 of file MutexPT.cxx.

References _cond.

52 {
53  pthread_cond_destroy(&_cond);
54 }

Member Function Documentation

void ConditionPT::notify_all ( )

Definition at line 61 of file MutexPT.cxx.

References _cond.

62 {
63  pthread_cond_broadcast(&_cond);
64 }
void ConditionPT::notify_one ( )

Definition at line 56 of file MutexPT.cxx.

References _cond.

57 {
58  pthread_cond_signal(&_cond);
59 }
void ConditionPT::wait ( MutexPT mutex)

Definition at line 66 of file MutexPT.cxx.

References _cond, and YACS::BASES::MutexPT::_mutexDesc.

67 {
68  pthread_cond_wait(&_cond, &mutex._mutexDesc);
69 }

Member Data Documentation

pthread_cond_t YACS::BASES::ConditionPT::_cond
private

Definition at line 56 of file MutexPT.hxx.

Referenced by ConditionPT(), notify_all(), notify_one(), wait(), and ~ConditionPT().


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