User Documentation
User Documentation
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

namespace PThread
User Level:
Library: PThreadCXX
Example: exChild.cc

Comments:

////////////////////////////////////////////////////////////

Child Classes:

#include "amma/PThread/Thread.hh"

ThreadBodyC Thread body.
ThreadC Thread handle.
#include "amma/PThread/Mutex.hh"

MutexC Mutual Exclusion lock.
MutexLockC Mutex locking class.
#include "amma/PThread/RWLock.hh"

RWLockC Read/Write lock.
RWLockHoldC RWLock locking class.
#include "amma/PThread/Conditional.hh"

ConditionalC Conditional variable.
#include "amma/PThread/SemaphoreRC.hh"

SemaphoreRC Semaphore.
#include "amma/PThread/Event.hh"

BEventC Broadcast Event.
#include "amma/PThread/Semaphore.hh"

SemaphoreC Semaphore.
#include "amma/PThread/MsgPipe.hh"

MsgPipeBaseC MsgPipe base class.
MsgPipeC Message MsgPipe
#include "amma/PThread/Launch.hh"

LaunchEventBodyC Launch event body.
LaunchEventC Launch event handle.
#include "amma/PThread/EventHandler.hh"

SignalEventBodyC Signal Event handle
SignalEventC Signal Event handle
SignalEventHandlerC Event handler.
SignalEventFunc0BodyC Signal Event handle
SignalEventFunc0C Signal Event handle
SignalEventFunc1BodyC Signal Event handle
SignalEventFunc1C Signal Event handle
SignalEventFunc2BodyC Signal Event handle
SignalEventFunc2C Signal Event handle
SignalEventFunc3BodyC Signal Event handle
SignalEventFunc3C Signal Event handle
SignalEventMethod0BodyC Signal Event handle
SignalEventMethod0C Signal Event handle
SignalEventMethod1BodyC Signal Event handle
SignalEventMethod1C Signal Event handle
SignalEventMethod2BodyC Signal Event handle
SignalEventMethod2C Signal Event handle
SignalEventMethod3BodyC Signal Event handle
SignalEventMethod3C Signal Event handle
SignalEventMethod4BodyC Signal Event handle
SignalEventMethod4C Signal Event handle
SignalEventMethod5BodyC Signal Event handle
SignalEventMethod5C Signal Event handle
#include "amma/PThread/Ticker.hh"

TickerEventBodyC Ticker event body.
TickerEventC Ticker event handle.
#include "amma/PThread/TimedEventQueue.hh"

TimedEventQueueC Timed event queue body.
TimedEventQueueBodyC Timed event queue body.
#include "amma/PThread/EventHandlerRef.hh"
SignalEventMethodRef0BodyC Signal Event handle
SignalEventMethodRef0C Signal Event handle
SignalEventMethodRef1BodyC Signal Event handle
SignalEventMethodRef1C Signal Event handle
SignalEventMethodRef2BodyC Signal Event handle
SignalEventMethodRef2C Signal Event handle
SignalEventMethodRef3BodyC Signal Event handle
SignalEventMethodRef3C Signal Event handle
Methods:

#include "amma/PThread/Thread.hh"
void Yield()
Yield control of processor
call if you wish a brief delay in execution. Particularly useful if you are forced to poll for an event.

UIntT CurrentThreadID()
Get ID of current running thread.

void * StartThread(void * Data)

void cancellationHandler(void * data)
Thread body.

UIntT ThisThreadID()
Get ID for this thread.

#include "amma/PThread/Semaphore.hh"
ostream & operator<<(ostream & out,const SemaphoreC & sema)
Write out to stream.
Write the semaphore count to the stream.

istream & operator<<(istream & in,SemaphoreC & sema)
Read in from stream.
Does nothing.

#include "amma/PThread/Launch.hh"
LaunchEventC Launch(const SignalEventC & nse)
Launch a routine on another thread.

LaunchEventC Launch(ScopePath (*)(FuncArgList) nFunc)
Launch a routine on another thread.

LaunchEventC Launch(ScopePath (*)(FuncArgList) nFunc,const DataT & dat)
Launch a routine on another thread.

LaunchEventC Launch(ScopePath (*)(FuncArgList) nFunc,const Data1T & dat1,const Data2T & dat2)
Launch a routine on another thread.

LaunchEventC Launch(ScopePath (*)(FuncArgList) nFunc,const Data1T & dat1,const Data2T & dat2,const Data3T & dat3)
Launch a routine on another thread.

LaunchEventC Launch(const ObjT & nObj,ScopePath (*)(FuncArgList) nFunc)
Launch a method on another thread.

LaunchEventC Launch(const ObjT & nObj,ScopePath (*)(FuncArgList) nFunc,const DataT & nDat)
Launch a method on another thread.

LaunchEventC Launch(const ObjT & nObj,ScopePath (*)(FuncArgList) nFunc,const Data1T & nDat1,const Data2T & nDat2)
Launch a method on another thread.

LaunchEventC Launch(const ObjT & nObj,ScopePath (*)(FuncArgList) nFunc,const Data1T & nDat1,const Data2T & nDat2,const Data3T & nDat3)
Launch a method on another thread.

LaunchEventC Launch(const ObjT & nObj,ScopePath (*)(FuncArgList) nFunc,const Data1T & nDat1,const Data2T & nDat2,const Data3T & nDat3,const Data4T & nDat4)
Launch a method on another thread.

LaunchEventC Launch(const ObjT & nObj,ScopePath (*)(FuncArgList) nFunc,const Data1T & nDat1,const Data2T & nDat2,const Data3T & nDat3,const Data4T & nDat4,const Data5T & nDat5)
Launch a method on another thread.

#include "amma/PThread/EventHandler.hh"
SignalEventC SignalEvent(ScopePath (*)(FuncArgList) nfunc)

SignalEventC SignalEvent(ScopePath (*)(FuncArgList) nfunc,const DataT & dat)

SignalEventC SignalEvent(const ObjT & nobj,ScopePath (*)(FuncArgList) nfunc)

SignalEventC SignalEvent(const ObjT & nobj,ScopePath (*)(FuncArgList) nfunc,const DataT & dat)

SignalEventC SignalEvent(const ObjT & nobj,ScopePath (*)(FuncArgList) nfunc,const Data1T & dat1,const Data2T & dat2)

SignalEventC SignalEvent(const ObjT & nobj,ScopePath (*)(FuncArgList) nfunc,const Data1T & dat1,const Data2T & dat2,const Data3T & dat3)

SignalEventC SignalEvent(const ObjT & nobj,ScopePath (*)(FuncArgList) nfunc,const Data1T & dat1,const Data2T & dat2,const Data3T & dat3,const Data4T & dat4)

SignalEventC SignalEvent(const ObjT & nobj,ScopePath (*)(FuncArgList) nfunc,const Data1T & dat1,const Data2T & dat2,const Data3T & dat3,const Data4T & dat4,const Data5T & dat5)

#include "amma/PThread/Ticker.hh"
ThreadC Ticker(RealT ndelay,const SignalEventC & nse)

ThreadC Ticker(RealT ndelay,ScopePath (*)(FuncArgList) nFunc)

ThreadC Ticker(RealT ndelay,ScopePath (*)(FuncArgList) nFunc,const DataT & dat)

ThreadC Ticker(RealT ndelay,const ObjT & nObj,ScopePath (*)(FuncArgList) nFunc)

ThreadC Ticker(RealT ndelay,const ObjT & nObj,ScopePath (*)(FuncArgList) nFunc,const DataT & nDat)

ThreadC Ticker(RealT ndelay,const ObjT & nObj,ScopePath (*)(FuncArgList) nFunc,const Data1T & nDat1,const Data2T & nDat2)

#include "amma/PThread/EventHandlerRef.hh"
SignalEventC SignalEventRef(ObjT & nobj,ScopePath (*)(FuncArgList) nfunc)

SignalEventC SignalEventRef(ObjT & nobj,ScopePath (*)(FuncArgList) nfunc,const DataT & dat)

SignalEventC SignalEventRef(ObjT & nobj,ScopePath (*)(FuncArgList) nfunc,const Data1T & dat1,const Data2T & dat2)

SignalEventC SignalEventRef(ObjT & nobj,ScopePath (*)(FuncArgList) nfunc,const Data1T & dat1,const Data2T & dat2,const Data3T & dat3)


Documentation by CxxDoc: Tue Mar 20 10:50:51 2001
Centre for Vision, Speech & Signal Processing