[openrtm-commit:01985] r2753 - trunk/OpenRTM-aist/src/lib/rtm
openrtm @ openrtm.org
openrtm @ openrtm.org
2016年 6月 7日 (火) 13:12:23 JST
Author: n-ando
Date: 2016-06-07 13:12:23 +0900 (Tue, 07 Jun 2016)
New Revision: 2753
Modified:
trunk/OpenRTM-aist/src/lib/rtm/OutPort.h
Log:
[compat,->RELENG_1_1] PortProfile (m_profile) is now guarded by mutex.
Modified: trunk/OpenRTM-aist/src/lib/rtm/OutPort.h
===================================================================
--- trunk/OpenRTM-aist/src/lib/rtm/OutPort.h 2016-06-07 00:13:05 UTC (rev 2752)
+++ trunk/OpenRTM-aist/src/lib/rtm/OutPort.h 2016-06-07 04:12:23 UTC (rev 2753)
@@ -139,7 +139,10 @@
m_value(value), m_onWrite(0), m_onWriteConvert(0)
{
addProperty("dataport.data_value", CORBA::Short(0));
- m_propValueIndex = NVUtil::find_index(m_profile.properties, "dataport.data_value");
+ {
+ Guard guard(m_profile_mutex);
+ m_propValueIndex = NVUtil::find_index(m_profile.properties, "dataport.data_value");
+ }
}
/*!
@@ -211,7 +214,10 @@
(*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;
More information about the openrtm-commit
mailing list