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

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.





Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:44:49 2007 for phission by  doxygen 1.4.4