|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
See SemaphoreC for an example of its use.
Parent Classes:
Variables:
- pthread_cond_t cond;
-
Methods:
- ConditionalC()
-
- ~ConditionalC()
-
Destructor
- void Broadcast()
-
- void Signal()
-
- void Wait()
-
- BooleanT Wait(RealT maxTime)
-
Wait for conditional.
This unlocks the mutex and then waits for a signal.
from either Signal, Broadcast or timeout, when it get it
the mutex is re-locked and control returned to the
program.
Returns false, if timeout occures.
- BooleanT Lock(void)
-
Lock mutex.
- BooleanT TryLock(void)
-
Try and lock mutex.
- BooleanT Unlock(void)
-
Unlock mutex.
- void Error(const char * msg)
-
Report an error.
- void Error(const char * msg,int anerrno)
-
Report an error, with an error number.
|
Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|