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

  PUBLIC
ThreadBodyC::ThreadBodyC(void)
ThreadBodyC::~ThreadBodyC(void)
ThreadBodyC::Execute(void)
ThreadBodyC::Terminate(void)
ThreadBodyC::SetPriority(int)
ThreadBodyC::ID(void) const
ThreadBodyC::Start(void)
ThreadBodyC::End(void)
ThreadBodyC::Startup(void)
ThreadBodyC::Cancel(void)
ThreadBodyC::StartThread(void *)
ThreadBodyC::cancellationHandler(void *)
RCBodyVC::Save(ostream &) const
RCBodyVC::Save(BinOStreamC &) const
RCBodyVC::Copy(void) const
RCBodyVC::DeepCopy(UIntT) const
RCBodyC::References(void) const
RCBodyC::Copy(void) const
RCBodyC::DeepCopy(UIntT) const
RCBodyC::IncRefCounter(void)
RCBodyC::DecRefCounter(void)

   ThreadBodyC   
 
Called when a thread is cancelled. Thread body.
 
include "Ravl/Threads/Thread.hh"
Created:02/07/1999 
Source file:Ravl/OS/Threads/Posix/Thread.hh
User Level:Develop
Library:RavlThreads
In Scope:RavlN

Parent Classes: Derived Classes: Variables:
pthread_t threadID;

bool live;
Set to true after thread is created.

bool terminatePending;
True if Terminate function has been called.

Methods:
ThreadBodyC()
Default constructor.

~ThreadBodyC()
Destructor.

bool Execute()
Start thread running, use this command to start thread running after it has been created. This function can only be called once.

void Terminate()
Terminate thread.
Call to stop the thread running. THEAD SAFE.

bool SetPriority(int Pri)
Set the priority of the process 0 to 32767, Higher faster. THEAD SAFE.

UIntT ID() const
Get a unique ID for this thread. NB. An id may no be assigned to the thread until after Execute() has been called. THEAD SAFE.

int Start()
Called when thread started.
This function should be overloaded is a derived class. It is called with the new thread after Execute() is called.

int End()
Called when thread terminates normally.
Overloading this method is optional. There is no need to call this function directly.

void Startup()
Start user code.

void Cancel()
Cancel thread.

void * StartThread(void *)

void cancellationHandler(void * data)

#include "Ravl/RCHandleV.hh"
bool Save(ostream & out) const
Save to stream 'out'.

bool Save(BinOStreamC & out) const
Save to binary stream 'out'.

RCBodyVC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

#include "Ravl/RefCounter.hh"
UIntT References() const
Access count of handles open to this object.

RCBodyC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

void IncRefCounter()
Increment reference counter.

bool DecRefCounter()
Decrement reference counter.


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