プロジェクト

全般

プロフィール

バグ #2341

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がガードしなくてもよろしかったでしょうか?


関連するチケット

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

関係しているリビジョン

リビジョン 664 (差分)
fsi-katami が約12年前に追加

setOwner()'s bug was fixed. Some mutex guards have been added. refs #2341

履歴

#1 匿名ユーザー が約12年前に更新

  • ステータス新規 から 解決 に変更
  • 進捗率0 から 100 に変更

#2 n-ando約12年前に更新

  • ステータス解決 から 終了 に変更

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