Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

TimerExecThread Class Reference

#include <TimerExecThread.h>

Inheritance diagram for TimerExecThread:

List of all members.


Detailed Description

executes EventRouter::processTimers() as necessary (allows timers to work without any other vision or sensor processing)

Definition at line 9 of file TimerExecThread.h.


Public Member Functions

 TimerExecThread (Resource &bl, bool autoStart=true)
virtual void reset ()
 starts and stops thread as needed, or interrupts thread to reset sleep time if already running

Protected Member Functions

virtual long calcSleepTime ()
 returns the time in milliseconds to sleep until the next timer; resets PollThread::startTime
virtual bool launched ()
virtual bool poll ()
virtual void interrupted ()

Protected Attributes

ResourcebehaviorLock
 a lock on behaviors which should be obtained before processing timer events

Constructor & Destructor Documentation

TimerExecThread ( Resource bl,
bool  autoStart = true 
) [inline, explicit]

Definition at line 11 of file TimerExecThread.h.


Member Function Documentation

void reset (  )  [virtual]

starts and stops thread as needed, or interrupts thread to reset sleep time if already running

Definition at line 12 of file TimerExecThread.cc.

Referenced by Main::gotCamera(), Main::gotEvent(), Main::gotSensors(), Main::gotTimer(), Main::run(), and TimerExecThread().

long calcSleepTime (  )  [protected, virtual]

returns the time in milliseconds to sleep until the next timer; resets PollThread::startTime

Definition at line 22 of file TimerExecThread.cc.

Referenced by interrupted(), launched(), and poll().

bool launched (  )  [protected, virtual]

Reimplemented from Thread.

Definition at line 27 of file TimerExecThread.cc.

bool poll (  )  [protected, virtual]

Reimplemented from PollThread.

Definition at line 34 of file TimerExecThread.cc.

void interrupted (  )  [protected, virtual]

Reimplemented from PollThread.

Definition at line 55 of file TimerExecThread.cc.


Member Data Documentation

Resource& behaviorLock [protected]

a lock on behaviors which should be obtained before processing timer events

Definition at line 20 of file TimerExecThread.h.

Referenced by poll().


The documentation for this class was generated from the following files:

Tekkotsu Hardware Abstraction Layer 4.0
Generated Thu Nov 22 01:01:25 2007 by Doxygen 1.5.4