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

  PUBLIC
TimedTriggerQueueBodyC::TimedTriggerQueueBodyC(void)
TimedTriggerQueueBodyC::~TimedTriggerQueueBodyC(void)
TimedTriggerQueueBodyC::Schedule(RealT,const TriggerC &)
TimedTriggerQueueBodyC::Schedule(DateC &,const TriggerC &)
TimedTriggerQueueBodyC::Cancel(UIntT)
TimedTriggerQueueBodyC::Shutdown(void)
TimedTriggerQueueBodyC::Process(void)
RCBodyC::References(void) const
RCBodyC::Copy(void) const
RCBodyC::DeepCopy(UIntT) const
RCBodyC::IncRefCounter(void)
RCBodyC::DecRefCounter(void)

   TimedTriggerQueueBodyC   
 
Timed event queue body.
 
include "Ravl/Threads/TimedTriggerQueue.hh"
Created:23/09/1999 
Source file:Ravl/OS/Threads/Tools/TimedTriggerQueue.hh
User Level:Develop
Library:RavlThreads
In Scope:RavlN

Comments:
This is a queue of routines to be triggered at some point in the future. See the handle class for more details.

Parent Classes: Variables:
MutexC access;

UIntT eventCount;

PriQueueC schedule;

HashC events;

bool done;

ThreadEventC hasShutdown;
Queue fd's

SemaphoreC semaSched;

int rfd;

int wfd;

Methods:
TimedTriggerQueueBodyC()
Default constuctor

~TimedTriggerQueueBodyC()
Destructor.
This will not return until shutdown is complete.

UIntT Schedule(RealT t,const TriggerC & se)
Schedule event for running after time 't' (in seconds).
Thread safe. Returns an ID for the event, which can be used for canceling it.

UIntT Schedule(DateC & at,const TriggerC & se)
Schedule event for running.
Thread safe. Returns an ID for the event, which can be used for canceling it.

bool Cancel(UIntT eventID)
Cancel pending event.
Will return TRUE if event in canceled before it was run.

void Shutdown()
Shutdown even queue.

bool Process()
Process event queue.

#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: 23/09/1999, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002