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

  PUBLIC
SemaphoreC::SemaphoreC(int)
SemaphoreC::SemaphoreC(const SemaphoreC &)
SemaphoreC::Wait(void)
SemaphoreC::Wait(RealT)
SemaphoreC::TryWait(void)
SemaphoreC::Post(void)
SemaphoreC::Count(void) const
SemaphoreC
 
Semaphore.
 
include "amma/PThread/Semaphore.hh"
User Level:Default
Library:PThreadCXX
Example:exChild.cc
Section:Utilities.Threads
In Scope:PThread

Variables:

Methods:
SemaphoreC(int initVal = 1)
Constructor.

SemaphoreC(const SemaphoreC & oth)
Copy Constructor.

BooleanT Wait()
Wait for semaphore.
Returns true if semaphore retrieved ok.

BooleanT Wait(RealT maxDelay)
Wait for semaphore.
Returns true if semaphore retrieved ok. False is returned on a time out.

BooleanT TryWait()
Try and wait for semaphore

BooleanT Post()
Post a semaphore.

int Count(void) const
Read semaphore count.


Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001