Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCWaitNotifyAll Class Reference

An waitnotify which allows multiple waiters to be awoken simultaneously. More...

#include <mcllib/MCWaitNotifyAll.h>

Inheritance diagram for MCWaitNotifyAll:

MCWaitNotify MCCondVar MCMonitor List of all members.

Public Member Functions

virtual void notifyAll ()=0
 Notify all waiters that an event occured.
virtual bool wait (mcinterval_t interval)=0
 Wait for an interval until notified or until the interval elapses.
virtual ~MCWaitNotifyAll ()
 Virtual destructor.

Detailed Description

An waitnotify which allows multiple waiters to be awoken simultaneously.

WaitNotifyAll also allow threads to specify a time limit when waiting for the event to occur.


Member Function Documentation

virtual bool wait mcinterval_t  interval  )  [pure virtual]
 

Wait for an interval until notified or until the interval elapses.

Parameters:
interval the maximum time in milliseconds to wait for the notify to occur.
Returns:
true if the calling thread has entered the monitor, false if the interval elapsed before the calling thread entered the monitor.

Implemented in MCCondVar, and MCMonitor.


Generated on Wed Jan 12 19:05:51 2005 for MCLLIB by  doxygen 1.3.9.1