Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IMonitor::waitTimed ( P6INTERVAL  tTimeout)
pure virtual

Waits for another thread to call notify() or notifyAll(), or for the specified amount of time to elapse.

The lock MUST be held by the current thread before calling this method. This method MUST be called in a while loop to mitigate spurious wakeups.

Parameters
tTimeoutA P6INTERVAL time defining the amount of time to wait for a notify before returning.
Returns
SuccessP6R::eOk 
FailureP6R::eTimeoutThe specified amount of time elapsed and notify() or notifyAll() was not called.