Fawkes API Fawkes Development Version
|
BlackBoard log replay blocked timing thread. More...
#include "logreplay_bt_thread.h"
Public Member Functions | |
BBLogReplayBlockedTimingThread (fawkes::BlockedTimingAspect::WakeupHook hook, const char *logfile_name, const char *logdir, const char *scenario, float grace_period, bool loop_replay, bool non_blocking) | |
Constructor. | |
Protected Member Functions | |
virtual void | run () |
Stub to see name in backtrace for easier debugging. |
BlackBoard log replay blocked timing thread.
This thread basically does the same task as the BBLogReplayThread, with the difference that this thread operates in blocked timing mode and integrates into the Fawkes main loop. It will replay one data set per loop and will block the loop until the data is ready. This is most useful to replay sensor logs of sensors, which are integrated into the main loop and thus influence timing also on the real data system.
Definition at line 31 of file logreplay_bt_thread.h.
BBLogReplayBlockedTimingThread::BBLogReplayBlockedTimingThread | ( | fawkes::BlockedTimingAspect::WakeupHook | hook, |
const char * | logfile_name, | ||
const char * | logdir, | ||
const char * | scenario, | ||
float | grace_period, | ||
bool | loop_replay, | ||
bool | non_blocking | ||
) |
Constructor.
hook | main loop hook to register for |
logfile_name | filename of the log to be replayed |
logdir | directory containing the logfile |
scenario | ID of the log scenario |
grace_period | time in seconds that desired offset and loop offset may diverge to still write the new data |
loop_replay | specifies if the replay should be looped |
non_blocking | do not block the main loop if not enough time has elapsed to replay new data but just wait for the next cycle. This is ignored in continuous thread mode as it could cause busy waiting. |
Definition at line 52 of file logreplay_bt_thread.cpp.
References fawkes::Thread::set_name(), and fawkes::Thread::set_prepfin_conc_loop().
virtual void BBLogReplayBlockedTimingThread::run | ( | ) | [inline, protected, virtual] |
Stub to see name in backtrace for easier debugging.
Reimplemented from BBLogReplayThread.
Definition at line 45 of file logreplay_bt_thread.h.