From 36d7aee1a214c14b1621bf773e9aae82c9971af5 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Sun, 24 Jun 2018 19:23:50 +0200 Subject: Make use of std::atomic when C++11 has been enabled * TAO/tao/AnyTypeCode/Any_Impl.cpp: * TAO/tao/AnyTypeCode/Any_Impl.h: * TAO/tao/AnyTypeCode/NVList.h: * TAO/tao/AnyTypeCode/True_RefCount_Policy.h: * TAO/tao/DynamicInterface/Context.cpp: * TAO/tao/DynamicInterface/Context.h: * TAO/tao/DynamicInterface/ExceptionList.cpp: * TAO/tao/DynamicInterface/ExceptionList.h: * TAO/tao/DynamicInterface/ExceptionList.inl: * TAO/tao/DynamicInterface/Request.h: * TAO/tao/DynamicInterface/Server_Request.h: * TAO/tao/Intrusive_Ref_Count_Base_T.h: * TAO/tao/Intrusive_Ref_Count_Base_T.inl: * TAO/tao/ORB.h: * TAO/tao/ORB.inl: * TAO/tao/ORB_Core.h: * TAO/tao/ORB_Core.inl: * TAO/tao/Object.cpp: * TAO/tao/Object.h: * TAO/tao/PortableServer/Servant_Base.cpp: * TAO/tao/PortableServer/Servant_Base.h: * TAO/tao/Principal.h: * TAO/tao/Profile.h: * TAO/tao/Refcounted_ObjectKey.cpp: * TAO/tao/Refcounted_ObjectKey.h: * TAO/tao/Refcounted_ObjectKey.inl: * TAO/tao/Reply_Dispatcher.cpp: * TAO/tao/Reply_Dispatcher.h: * TAO/tao/Stub.h: * TAO/tao/Valuetype/AbstractBase.h: * TAO/tao/Valuetype/ValueBase.cpp: * TAO/tao/Valuetype/ValueBase.h: * TAO/tao/Valuetype/ValueFactory.cpp: * TAO/tao/Valuetype/ValueFactory.h: --- TAO/tao/ORB.inl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'TAO/tao/ORB.inl') diff --git a/TAO/tao/ORB.inl b/TAO/tao/ORB.inl index 9772329fbec..b46a2f83819 100644 --- a/TAO/tao/ORB.inl +++ b/TAO/tao/ORB.inl @@ -26,7 +26,11 @@ CORBA::ORB::_incr_refcount (void) ACE_INLINE unsigned long CORBA::ORB::_refcount (void) const { +#if defined (ACE_HAS_CPP11) + return this->refcount_; +#else return this->refcount_.value (); +#endif /* ACE_HAS_CPP11 */ } ACE_INLINE unsigned long -- cgit v1.2.1