User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - OS - Time - TimedTriggerQueueC
 

  PUBLIC
TimedTriggerQueueC::TimedTriggerQueueC(void)
TimedTriggerQueueC::TimedTriggerQueueC(bool)
TimedTriggerQueueC::Schedule(RealT,const TriggerC &)
TimedTriggerQueueC::Schedule(DateC &,const TriggerC &)
TimedTriggerQueueC::Cancel(UIntT)
TimedTriggerQueueC::Shutdown(void)
RCHandleC::operator =(const RCHandleC &)
RCHandleC::DeepCopy(UIntT) const
RCHandleC::operator ==(const RCHandleC &) const
RCHandleC::operator !=(const RCHandleC &) const
RCHandleC::Hash(void) const
RCHandleC::IsValid(void) const
RCHandleC::Invalidate(void)
RCHandleC::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   TimedTriggerQueueC   
 
Timed event queue.
 
include "Ravl/Threads/TimedTriggerQueue.hh"
Created:23/09/1999 
User Level:Normal
Library:RavlThreads
In Scope:RavlN

Comments:
This is a queue of routines to be triggered at some point in the future. This class creates a new thread which triggers a list of routines in the requested sequence. A single thread is used to call all the routines, so if any lengthy processing is required it is better to spawn a new thread to complete it.

Parent Classes: Methods:
TimedTriggerQueueC()
Default constructor.
Creates an invalid handle.

TimedTriggerQueueC(bool)
Default constructor.
Creates an invalid handle.

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.
NB. This will block until shutdown is complete

#include "Ravl/RefCounter.hh"
const RCHandleC<TimedTriggerQueueBodyC> & operator =(const RCHandleC<TimedTriggerQueueBodyC> & oth)
Assign handle.

RCHandleC<TimedTriggerQueueBodyC> DeepCopy(UIntT levels = ((UIntT))) const
Do a deep copy of the object.

bool operator ==(const RCHandleC<TimedTriggerQueueBodyC> & oth) const
Are handles to the same object ?

bool operator !=(const RCHandleC<TimedTriggerQueueBodyC> & oth) const
Are handles to different objects ?

UIntT Hash() const
Default hash function.
This hashes on the address of the body.

bool IsValid() const
Test if this is a valid handle.

void Invalidate()
Invalidate this handle.
Unattaches the body from the handle.

bool IsHandleType(const DT &) const
Is handle of given type ?

void CheckHandleType(const DT & dummy) const
Check handle type. Throw an expception if not.

UIntT References() const
Find the number of references to the body of this object.

ostream & operator <<(ostream & strm,const RCHandleC<TimedTriggerQueueBodyC> & obj)

istream & operator >>(istream & strm,RCHandleC<TimedTriggerQueueBodyC> & obj)


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