Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

TimerExecThread Class Reference

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

#include <TimerExecThread.h>

Inheritance diagram for TimerExecThread:

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.

List of all members.

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 
) [explicit]

Definition at line 11 of file TimerExecThread.h.


Member Function Documentation

long calcSleepTime (  )  [protected, virtual]

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

Definition at line 23 of file TimerExecThread.cc.

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

void interrupted (  )  [protected, virtual]

Reimplemented from PollThread.

Definition at line 60 of file TimerExecThread.cc.

bool launched (  )  [protected, virtual]

Reimplemented from Thread.

Definition at line 32 of file TimerExecThread.cc.

bool poll (  )  [protected, virtual]

Reimplemented from PollThread.

Definition at line 39 of file TimerExecThread.cc.

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::gotThreadedEvent(), Main::gotTimer(), Main::run(), and TimerExecThread().


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 5.1CVS
Generated Mon May 9 05:01:42 2016 by Doxygen 1.6.3