fawkes::ClockAspect Class Reference
[Fawkes Thread Aspects]
Thread aspect that allows to obtain the current time from the clock.
More...
#include <aspect/clock.h>

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. | |
Detailed Description
Thread aspect that allows to obtain the current time from the clock.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.
Constructor & Destructor Documentation
| fawkes::ClockAspect::~ClockAspect | ( | ) | [virtual] |
Member Function Documentation
| 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).
- Parameters:
-
clock Clock instance to use.
Definition at line 54 of file clock.cpp.
Referenced by fawkes::AspectIniFin::init().
Member Data Documentation
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(), BlackBoardSynchronizationThread::init(), TimeTrackerMainLoopThread::init(), FvBaseThread::register_for_camera(), and FestivalSynthThread::say().
The documentation for this class was generated from the following files:

