ZThread::ConditionImpl< List > Class Template Reference

#include <ConditionImpl.h>

List of all members.

Public Member Functions

 ConditionImpl (Lockable &predicateLock)
 ~ConditionImpl ()
void signal ()
void broadcast ()
void wait ()
bool wait (unsigned long timeout)


Detailed Description

template<typename List>
class ZThread::ConditionImpl< List >

Author:
Eric Crahen <http://www.code-foo.com>
Date:
<2003-07-18T08:15:37-0400>
Version:
2.2.11
The ConditionImpl template allows how waiter lists are sorted to be parameteized


Constructor & Destructor Documentation

template<typename List>
ZThread::ConditionImpl< List >::ConditionImpl ( Lockable predicateLock  )  [inline]

Create a new ConditionImpl.

Exceptions:
Initialization_Exception thrown if resources could not be allocated

template<typename List>
ZThread::ConditionImpl< List >::~ConditionImpl (  ) 

Destroy this ConditionImpl, release its resources


Member Function Documentation

template<typename List>
void ZThread::ConditionImpl< List >::broadcast (  ) 

Broadcast to the condition variable, waking all threads waiting at the time of the broadcast.

template<typename List>
void ZThread::ConditionImpl< List >::signal (  ) 

Signal the condition variable, waking one thread if any.

template<typename List>
bool ZThread::ConditionImpl< List >::wait ( unsigned long  timeout  ) 

Cause the currently executing thread to block until this ConditionImpl has been signaled, or the timeout expires or the threads state changes.

Parameters:
_predicateLock Lockable&
timeout maximum milliseconds to block.
Returns:
bool
Exceptions:
Interrupted_Exception thrown when the caller status is interrupted
Synchronization_Exception thrown if there is some other error.

template<typename List>
void ZThread::ConditionImpl< List >::wait (  ) 

Cause the currently executing thread to block until this ConditionImpl has been signaled, the threads state changes.

Parameters:
predicate Lockable&
Exceptions:
Interrupted_Exception thrown when the caller status is interrupted
Synchronization_Exception thrown if there is some other error.


The documentation for this class was generated from the following file:
Generated on Wed Aug 30 03:27:49 2006 for SWG EMU by  doxygen 1.4.7