Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
ConditionalC::ConditionalC(void)
ConditionalC::~ConditionalC(void)
ConditionalC::Broadcast(void)
ConditionalC::Signal(void)
ConditionalC::Wait(void)
ConditionalC::Wait(RealT)
MutexC::Lock(void)
MutexC::TryLock(void)
MutexC::Unlock(void)
MutexC::Error(const char *)
MutexC::Error(const char *,int)
ConditionalC
 
Conditional variable.
 
include "amma/PThread/Conditional.hh"
User Level:Default
Library:PThreadCXX
Example:exChild.cc
Section:Utilities.Threads
In Scope:PThread

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.


#include "amma/PThread/Mutex.hh"
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