Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - OS - Threads - ConditionalMutexC
 

  PUBLIC
ConditionalMutexC::ConditionalMutexC(void)
ConditionalMutexC::~ConditionalMutexC(void)
ConditionalMutexC::Broadcast(void)
ConditionalMutexC::Signal(void)
ConditionalMutexC::Wait(void)
ConditionalMutexC::Wait(RealT)
MutexC::Lock(void)
MutexC::TryLock(void)
MutexC::Unlock(void)
MutexC::Error(const char *)
MutexC::Error(const char *,int)

   ConditionalMutexC   
 
Conditional variable.
 
include "Ravl/Threads/ConditionalMutex.hh"
Created:02/07/99 
Source file:Ravl/OS/Threads/Posix/ConditionalMutex.hh
User Level:Normal
Library:RavlThreads
In Scope:RavlN

Comments:
See SemaphoreC for an example of its use.

Parent Classes: Variables:
pthread_cond_t cond;

Methods:
ConditionalMutexC()

~ConditionalMutexC()
Destructor

void Broadcast()

void Signal()

void Wait()

bool 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 "Ravl/Threads/Mutex.hh"
bool Lock(void)
Lock mutex.

bool TryLock(void)
Try and lock mutex.

bool 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.


Maintainer:Charles Galambos, Created: 02/07/99, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002