[openrtm-commit:03063] r3158 - branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm
openrtm @ openrtm.org
openrtm @ openrtm.org
2018年 1月 17日 (水) 09:56:39 JST
Author: miyamoto
Date: 2018-01-17 09:56:38 +0900 (Wed, 17 Jan 2018)
New Revision: 3158
Modified:
branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm/CorbaPort.h
Log:
[compat,->RELENG_1_2] refs #3441
Modified: branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm/CorbaPort.h
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm/CorbaPort.h 2017-12-25 08:49:28 UTC (rev 3157)
+++ branches/RELENG_1_2/OpenRTM-aist/src/lib/rtm/CorbaPort.h 2018-01-17 00:56:38 UTC (rev 3158)
@@ -1226,11 +1226,15 @@
m_ior()
{
#ifndef ORB_IS_RTORB
- PortableServer::POA_var poa = ::RTC::Manager::instance().getPOA();
- m_oid = poa->servant_to_id(m_servant);
+#ifdef ORB_IS_OMNIORB
+ m_poa = ::RTC::Manager::instance().theShortCutPOA();
+#else
+ m_poa = ::RTC::Manager::instance().getPOA();
+#endif
+ m_oid = m_poa->servant_to_id(m_servant);
try
{
- poa->activate_object_with_id(m_oid, m_servant);
+ m_poa->activate_object_with_id(m_oid, m_servant);
}
catch(...)
{
@@ -1237,7 +1241,7 @@
;
}
CORBA::Object_var obj;
- obj = poa->id_to_reference(m_oid);
+ obj = m_poa->id_to_reference(m_oid);
CORBA::ORB_var orb = Manager::instance().getORB();
CORBA::String_var ior_var = orb->object_to_string(obj);
m_ior = ior_var;
@@ -1267,8 +1271,7 @@
{
try
{
- ::RTC::Manager::instance().
- thePOA()->activate_object_with_id(m_oid, m_servant);
+ m_poa->activate_object_with_id(m_oid, m_servant);
}
catch(const ::PortableServer::POA::ServantAlreadyActive &)
{
@@ -1283,7 +1286,7 @@
{
try
{
- ::RTC::Manager::instance().thePOA()->deactivate_object(m_oid);
+ m_poa->deactivate_object(m_oid);
}
catch(...)
{
@@ -1296,6 +1299,7 @@
PortableServer::RefCountServantBase* m_servant;
PortableServer::ObjectId_var m_oid;
std::string m_ior;
+ PortableServer::POA_var m_poa;
};
/*!
More information about the openrtm-commit
mailing list