Skip to content

Commit

Permalink
add patch to fix OutPort.h bugs OpenRTM/OpenRTM-aist@0cf33b8, https:/…
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Apr 14, 2020
1 parent 1f75f24 commit ec065c9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/lib/rtm/OutPort.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,12 @@ namespace RTC
#endif
m_value(value), m_onWrite(0), m_onWriteConvert(0)
{
addProperty("dataport.data_value", m_value);
m_propValueIndex = NVUtil::find_index(m_profile.properties, "dataport.data_value");
addProperty("dataport.data_value", CORBA::Short(0));
{
Guard guard(m_profile_mutex);
m_propValueIndex = NVUtil::find_index(m_profile.properties,
"dataport.data_value");
}
}

/*!
Expand Down Expand Up @@ -211,7 +215,10 @@ namespace RTC
(*m_onWrite)(value);
RTC_TRACE(("OnWrite called"));
}
m_profile.properties[m_propValueIndex].value <<= value;
{
Guard guard(m_profile_mutex);
m_profile.properties[m_propValueIndex].value <<= value;
}

bool result(true);
std::vector<const char *> disconnect_ids;
Expand Down

0 comments on commit ec065c9

Please sign in to comment.