プロジェクト

全般

プロフィール

バグ #2342

完了

ExecutionContextProfile setOwnerのバグ他

n-ando さんが12年以上前に追加. 12年以上前に更新.

ステータス:
終了
優先度:
通常
担当者:
対象バージョン:
-
開始日:
2012/02/04
期日:
進捗率:

100%

予定工数:

説明

ExecutionContextProfile::setOwner()でm_profile.ownerへの参照の代入が間違っているので修正する。
また、
  • addComponent()
  • setOwner()
  • getOwner()
  • getKind()
    でm_profileのロックが抜けているのでガードを追加する。

setOwner()の以下の行では、

  m_profile.owner = RTC::RTObject::_duplicate(m_profile.owner); // line:233

m_profile.ownerをm_profile.ownerに入れられてますが、
これは、以下が正しいのではと思います。いかがでしょうか?

 m_profile.owner = RTC::RTObject::_duplicate(rtobj);

さらに、上記の処理は、m_profileMutexがガードしなくてもよろしかったでしょうか?


関連するチケット 1 (0件未完了1件完了)

関連している OpenRTM-aist (Java) - バグ #2341: ExecutionContextProfile setOwnerのバグ他終了2012/02/04

操作

他の形式にエクスポート: Atom PDF