Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::system::TCondition Class Reference

#include <condition.hh>

Inheritance diagram for mpcl::system::TCondition:

mpcl::system::ICondition List of all members.

Public Methods

 TCondition (TMutex &rtSOURCE_MUTEX) throw (TErrorException)
 ~TCondition () throw (TErrorException)
void wait (void) throw (TErrorException)
bool timedWait (size_t zSECONDS, size_t zNANOSECONDS=0) throw (TErrorException)
void signal (void) throw (TErrorException)
void broadcast (void) throw (TErrorException)

Detailed Description

Condition for POSIX operating system class.
See also:
TOperatingSystem.

Definition at line 47 of file posix_1/condition.hh.


Constructor & Destructor Documentation

mpcl::system::TCondition::TCondition (  TMutex &    rtSOURCE_MUTEX )  throw (TErrorException) [inline]
 

Builds a new instance.

Parameters:
rtSOURCE_MUTEX  Lock for entry point to condition variable.
Exceptions:
TErrorException  If any error occurs.

Definition at line 70 of file posix_1/condition.hh.

References mpcl::system::GetErrorMessage().

mpcl::system::TCondition::~TCondition (    )  throw (TErrorException) [inline]
 

Destroys the instance.

Exceptions:
TErrorException  If any error occurs.

Definition at line 86 of file posix_1/condition.hh.

References mpcl::system::GetErrorMessage().


Member Function Documentation

void mpcl::system::TCondition::broadcast (  void    )  throw (TErrorException) [inline, virtual]
 

Does the same thing that the parent function but includes exceptions.

Exceptions:
TErrorException  If any error occurs.

Implements mpcl::system::ICondition.

Definition at line 137 of file posix_1/condition.hh.

References mpcl::system::GetErrorMessage().

void mpcl::system::TCondition::signal (  void    )  throw (TErrorException) [inline, virtual]
 

Does the same thing that the parent function but includes exceptions.

Exceptions:
TErrorException  If any error occurs.

Implements mpcl::system::ICondition.

Definition at line 124 of file posix_1/condition.hh.

References mpcl::system::GetErrorMessage().

bool mpcl::system::TCondition::timedWait (  size_t    zSECONDS,
size_t    zNANOSECONDS = 0
)  throw (TErrorException) [virtual]
 

Does the same thing that the parent function but includes exceptions.

Parameters:
zSECONDS  Seconds to wait for.
zNANOSECONDS  Nanoseconds to wait for.
Returns:
True if time has been reached or exceeded.
Exceptions:
TErrorException  If any error occurs.
See also:
wait().

Implements mpcl::system::ICondition.

Definition at line 35 of file condition.cc.

References mpcl::system::GetErrorMessage().

void mpcl::system::TCondition::wait (  void    )  throw (TErrorException) [inline, virtual]
 

Does the same thing that the parent function but includes exceptions.

Exceptions:
TErrorException  If any error occurs.
See also:
signal(), broadcast().

Implements mpcl::system::ICondition.

Definition at line 100 of file posix_1/condition.hh.

References mpcl::system::GetErrorMessage(), and mpcl::system::TMutex::tPosixId.


The documentation for this class was generated from the following files:
Generated on Mon Oct 13 02:35:25 2003 for MPCL by doxygen1.2.18