|
int phCondition::timedWait |
( |
const int |
sec, |
|
|
const int |
nsec |
|
) |
|
|
|
This method waits on a condition to be signaled or broadcast for sec seconds plus nsec nano-seconds.
- Precondition:
- have the object lock.
- Postcondition:
- If timed out, then we have the lock but we were signaled by another thread. If successful, then we have the lock and we were signalled by another thread.
- Returns:
- A value denoting the success or failure of the condition variable being signaled and the object lock being acquired.
- Return values:
-
| phCondition_RECEIVED | The signal was received and the object has been successfully locked. This value is synonymous with phSUCCESS. |
| phCondition_NOTRECEIVED | The wait time period expired and the condition wasn't signaled or broadcast. |
| phFAIL | The timed wait failed for some fatal system error. |
Definition at line 462 of file phCondition.cpp. |
|