MonitorTask Class Reference

モニタタスクの制御クラス More...

#include <monitorTask.h>

Inheritance diagram for MonitorTask:

Inheritance graph
[legend]
Collaboration diagram for MonitorTask:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

モニタタスクの制御クラス

Definition at line 31 of file monitorTask.h.


Member Function Documentation

SDL_cond * MonitorTask::setWakeupTicks ( unsigned long  wait_ticks,
SDL_cond *  wait_cond,
SDL_mutex *  wait_mutex 
)

起床時刻の登録

Parameters:
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   ) 

タイムスタンプの取得

Returns:
タイムスタンプ [msec]

Definition at line 164 of file monitorTask.cpp.

References lock(), and unlock().

Referenced by vmonitor::getTicks().

void MonitorTask::add ( TaskInterface task  ) 

処理タスクの登録

Parameters:
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  ) 

処理タスクの削除

Parameters:
task [i] タスク

Definition at line 155 of file monitorTask.cpp.

References lock(), and unlock().

Referenced by vmonitor::del().

void MonitorTask::setTimeMagnify ( double  magnify  ) 

時間の進行倍率を変更

Parameters:
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 
)

指定タイムスタンプまで待機

Parameters:
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().


The documentation for this class was generated from the following files:

Generated on Mon Apr 13 22:52:07 2009 by  doxygen 1.5.7.1