#include <archon/util/condition.H>
Collaboration diagram for Archon::Utilities::Condition:
Public Member Functions | |
Condition (Mutex &m) | |
~Condition () | |
void | notifyOne () |
void | notifyAll () |
void | wait () throw (UnexpectedException) |
NOTE: The mutex associated with this condition MUST ALWAYS be aquired by YOU when you call this method. | |
bool | timedWait (Time timeout) throw (UnexpectedException) |
NOTE: The mutex associated with this condition MUST ALWAYS be aquired by YOU when you call this method. | |
int | select (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, Time timeout) throw (UnexpectedException) |
Definition at line 49 of file condition.H.
|
DON'T FORGET! This method suspends the calling thread until one of the following event occur: Any event that would resume 'timedWait' on this condition and any event that would resume the system call pselect(n, readfds, writefds, exceptfds, 0, 0). The first four arguments behave exactly as for the POSIX 1003.1-2001 systemcall 'pselect'.
Definition at line 138 of file condition.C. References Archon::Utilities::Mutex::lock(), m, Archon::SaiTestApps::Filebrowser::mutex, n, Archon::Utilities::Time::now(), Archon::Utilities::Thread::self(), and Archon::Utilities::Mutex::unlock(). Referenced by T::main(). |
|
NOTE: The mutex associated with this condition MUST ALWAYS be aquired by YOU when you call this method. DON'T FORGET! Like 'wait()' except that when the 'timeout' is reached the waiting is aborted. Note the 'timeout' is an absolute time value and not a delay.
Definition at line 79 of file condition.C. References Archon::Utilities::Mutex::mutex, Archon::SaiTestApps::Filebrowser::mutex, and Archon::Utilities::Thread::self(). Referenced by Archon::X3D::SAI::Session::ExternalEventQueue::main(), Archon::Utilities::Thread::sleep(), and Archon::Utilities::Thread::sleepUntil(). |
|