[openrtm-users 00796] How to destroyContext?

2 posts / 0 new
Last post
root
Offline
Last seen: 2 days 11 hours ago
Joined: 2009-06-23 14:31
[openrtm-users 00796] How to destroyContext?

OpenRTM-aist開発者の皆様

1.0.0で、
Manager::createContext()
が追加されましたが、
これの逆に当たるオペレーションが
無いように思います。

Manager::destroyContext(ExecutionContextBase*);
のようなものが必要ではないでしょうか?

これに関連して、
RTObject_impl::finalizeContexts();
の中でECが直接deleteされているのですが、
factoryを介さないdestroyは、
createとの整合性が崩れるので
やめた方がよいと思います。

# 1.0系は品質が重要と思いますので、
敢えて厳しくソースを眺めています。
気づいた点はどんどん報告していきますので、
よろしくご検討ください。

静岡大 清水

Undefined
root
Offline
Last seen: 2 days 11 hours ago
Joined: 2009-06-23 14:31
[openrtm-users 00797] How to destroyContext?

清水様

安藤です

ありがとうございます。
ご指摘のManager::createContext()ですが、実はこの関数は
テンポラリなもので、release版では coil::GlobalFactory を
使用する予定です。

> OpenRTM-aist開発者の皆様
>
> 1.0.0で、
> Manager::createContext()
> が追加されましたが、
> これの逆に当たるオペレーションが
> 無いように思います。
>
> Manager::destroyContext(ExecutionContextBase*);
> のようなものが必要ではないでしょうか?
>
> これに関連して、
> RTObject_impl::finalizeContexts();
> の中でECが直接deleteされているのですが、
> factoryを介さないdestroyは、
> createとの整合性が崩れるので
> やめた方がよいと思います。
>
> # 1.0系は品質が重要と思いますので、
> 敢えて厳しくソースを眺めています。
> 気づいた点はどんどん報告していきますので、
> よろしくご検討ください。
>
> 静岡大 清水

Log in or register to post comments

Download

latest Releases : 2.0.0-RELESE

2.1.0-RELESE Download page
2.0.1-RELESE Download page

Number of Projects

Choreonoid

Motion editor/Dynamics simulator

OpenHRP3

Dynamics simulator

OpenRTP

Integrated Development Platform

AIST RTC collection

RT-Components collection by AIST

TORK

Tokyo Opensource Robotics Association

DAQ-Middleware

Middleware for DAQ (Data Aquisition) by KEK