OpenRTM
1.0.0
メインページ
ネームスペース
クラス
ファイル
ファイル一覧
ファイルメンバ
tmp
buildd
ros-hydro-openrtm-aist-1.1.0-13quantal-20150213-1351
src
lib
rtm
ExtTrigExecutionContext.h
説明を見る。
1
// -*- C++ -*-
19
#ifndef RTC_EXTTRIGEXECUTIONCONTEXT_H
20
#define RTC_EXTTRIGEXECUTIONCONTEXT_H
21
22
#include <
rtm/RTC.h
>
23
24
#include <
coil/Mutex.h
>
25
#include <
coil/Condition.h
>
26
#include <
coil/Task.h
>
27
28
#include <
rtm/Manager.h
>
29
#include <
rtm/PeriodicExecutionContext.h
>
30
31
#ifdef WIN32
32
#pragma warning( disable : 4290 )
33
#endif
34
35
namespace
RTC
36
{
59
class
ExtTrigExecutionContext
60
:
public
virtual
PeriodicExecutionContext
61
{
62
typedef
coil::Mutex
Mutex
;
63
typedef
coil::Condition<Mutex>
Condition
;
64
public
:
78
ExtTrigExecutionContext
();
79
93
virtual
~ExtTrigExecutionContext
(
void
);
94
108
virtual
void
tick
()
109
throw
(CORBA::SystemException);
110
131
virtual
int
svc
(
void
);
132
133
private
:
134
struct
Worker
135
{
136
Worker() : _cond(_mutex), _called(
false
) {};
137
Mutex
_mutex;
138
Condition
_cond;
139
bool
_called;
140
};
141
// A condition variable for external triggered worker
142
Worker m_worker;
143
};
// class ExtTrigExecutionContext
144
};
// namespace RTC
145
146
#ifdef WIN32
147
#pragma warning( default : 4290 )
148
#endif
149
150
151
extern
"C"
152
{
168
void
ExtTrigExecutionContextInit
(
RTC::Manager
* manager);
169
};
170
171
#endif // RTC_EXTTRIGEXECUTIONCONTEXT_H
OpenRTMに対してFri Feb 13 2015 13:58:06に生成されました。
1.8.1.2