Project

General

Profile

Actions

バグ #2341

closed

ExecutionContextProfile setOwnerのバグ他

Added by n-ando about 13 years ago. Updated about 13 years ago.

Status:
終了
Priority:
通常
Assignee:
-
Target version:
-
Start date:
02/04/2012
Due date:
% Done:

100%

Estimated time:

Description

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


Related issues 1 (0 open1 closed)

Related to OpenRTM-aist (C++) - バグ #2342: ExecutionContextProfile setOwnerのバグ他終了n-ando02/04/2012

Actions
Actions #1

Updated by Anonymous about 13 years ago

  • Status changed from 新規 to 解決
  • % Done changed from 0 to 100
Actions #2

Updated by n-ando about 13 years ago

  • Status changed from 解決 to 終了
Actions

Also available in: Atom PDF