Fawkes API
Fawkes Development Version
|
00001 00002 /*************************************************************************** 00003 * logreplay_bt_thread.h - BB Log Replay Blocked Timing Thread 00004 * 00005 * Created: Sun Feb 21 23:50:08 2010 00006 * Copyright 2010 Tim Niemueller [www.niemueller.de] 00007 * 2010 Masrur Doostdar <doostdar@kbsg.rwth-aachen.de> 00008 * 00009 ****************************************************************************/ 00010 00011 /* This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Library General Public License for more details. 00020 * 00021 * Read the full text in the LICENSE.GPL file in the doc directory. 00022 */ 00023 00024 #ifndef __PLUGINS_BBLOGGER_LOGREPLAY_BT_THREAD_H_ 00025 #define __PLUGINS_BBLOGGER_LOGREPLAY_BT_THREAD_H_ 00026 00027 #include "logreplay_thread.h" 00028 00029 #include <aspect/blocked_timing.h> 00030 00031 class BBLogReplayBlockedTimingThread 00032 : public BBLogReplayThread, 00033 public fawkes::BlockedTimingAspect 00034 { 00035 public: 00036 BBLogReplayBlockedTimingThread(fawkes::BlockedTimingAspect::WakeupHook hook, 00037 const char *logfile_name, 00038 const char *logdir, 00039 const char *scenario, 00040 float grace_period, 00041 bool loop_replay, 00042 bool non_blocking); 00043 00044 /** Stub to see name in backtrace for easier debugging. @see Thread::run() */ 00045 protected: virtual void run() { Thread::run(); } 00046 00047 }; 00048 00049 00050 #endif