#include <aspect/clock.h>
Inheritance diagram for fawkes::ClockAspect:
Public Member Functions | |
virtual | ~ClockAspect () |
Virtual empty destructor. | |
void | init_ClockAspect (Clock *clock) |
Set the clock. | |
Protected Attributes | |
Clock * | clock |
By means of this member access to the clock is given. |
Threads that need to deal with the current time should have this aspect and not obtain the time by means of gettimeofday!
Definition at line 31 of file clock.h.
fawkes::ClockAspect::~ClockAspect | ( | ) | [virtual] |
void fawkes::ClockAspect::init_ClockAspect | ( | Clock * | clock | ) |
Set the clock.
It is guaranteed that this is called for a clock thread before Thread::start() is called (when running regularly inside Fawkes).
clock | Clock instance to use. |
Definition at line 54 of file clock.cpp.
References clock.
Referenced by fawkes::AspectIniFin::init().
Clock fawkes::ClockAspect::clock [protected] |
By means of this member access to the clock is given.
Definition at line 39 of file clock.h.
Referenced by XabslEngineThread::init(), SkillerExecutionThread::init(), LuaAgentExecutionThread::init(), HokuyoUrgAcquisitionThread::init(), BlackBoardSynchronizationThread::init(), BBLoggerThread::init(), TimeTrackerMainLoopThread::init(), init_ClockAspect(), FvBaseThread::register_for_camera(), and FestivalSynthThread::say().