#include <monitorTask.h>
Classes | |
struct | waits_t |
Public Member Functions | |
void | lock (void) |
モニタ資源のロック | |
void | unlock (void) |
モニタ資源のアンロック | |
SDL_cond * | setWakeupTicks (unsigned long wait_ticks, SDL_cond *wait_cond, SDL_mutex *wait_mutex) |
起床時刻の登録 | |
unsigned long | getTicks (void) |
タイムスタンプの取得 | |
void | add (TaskInterface *task) |
処理タスクの登録 | |
void | del (TaskInterface *task) |
処理タスクの削除 | |
void | pause (void) |
一時停止 | |
void | start (void) |
再開 | |
void | setTimeMagnify (double magnify) |
時間の進行倍率を変更 | |
void | waitToTicks (unsigned long ticks, SDL_cond *cond, SDL_mutex *wait_mutex) |
指定タイムスタンプまで待機 | |
void | waitOnlyCommand (vmonitor *mon, int monitorMode, SDL_cond *cond, SDL_mutex *wait_mutex, const char *module, const char *command) |
コマンド読み出しまで待機 | |
void | setRunObject (RunCtrl *run_obj) |
void | setScreenObject (ScreenTask *scr_obj) |
Static Public Member Functions | |
static VXV::Position | getRunPosition (void) |
Friends | |
class | ScreenTask |
class | URG_Simulator |
class | mRunCtrl |
Definition at line 31 of file monitorTask.h.
SDL_cond * MonitorTask::setWakeupTicks | ( | unsigned long | wait_ticks, | |
SDL_cond * | wait_cond, | |||
SDL_mutex * | wait_mutex | |||
) |
起床時刻の登録
wait_ticks | [i] 待機時刻 [msec] | |
wait_cond | [o] 条件変数 | |
wait_mutex | [o] ロック資源 |
Definition at line 128 of file monitorTask.cpp.
Referenced by waitToTicks().
unsigned long MonitorTask::getTicks | ( | void | ) |
タイムスタンプの取得
Definition at line 164 of file monitorTask.cpp.
References lock(), and unlock().
Referenced by vmonitor::getTicks().
void MonitorTask::add | ( | TaskInterface * | task | ) |
処理タスクの登録
task | [i] タスク |
Definition at line 145 of file monitorTask.cpp.
References TaskInterface::init(), lock(), and unlock().
Referenced by vmonitor::add().
void MonitorTask::del | ( | TaskInterface * | task | ) |
処理タスクの削除
task | [i] タスク |
Definition at line 155 of file monitorTask.cpp.
References lock(), and unlock().
Referenced by vmonitor::del().
void MonitorTask::setTimeMagnify | ( | double | magnify | ) |
時間の進行倍率を変更
magnify | [i] 時間の進行倍率 |
Definition at line 189 of file monitorTask.cpp.
References lock(), pause(), start(), and unlock().
Referenced by vmonitor::setTimeMagnify().
void MonitorTask::waitToTicks | ( | unsigned long | ticks, | |
SDL_cond * | cond, | |||
SDL_mutex * | wait_mutex | |||
) |
指定タイムスタンプまで待機
ticks | [i] タイムスタンプ | |
cond | [o] 条件変数 | |
wait_mutex | [i] ロック資源 |
Definition at line 198 of file monitorTask.cpp.
References lock(), setWakeupTicks(), and unlock().
Referenced by mURGCtrl::getCaptureTimes(), and waitOnlyCommand().