diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2018-06-24 19:23:50 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2018-06-24 19:23:50 +0200 |
commit | 36d7aee1a214c14b1621bf773e9aae82c9971af5 (patch) | |
tree | 2a049b28a7068451475a8f347e71e425bd641202 /TAO/tao/Reply_Dispatcher.cpp | |
parent | 9d5ca158661004ec2ecabc64f2ff8297c4c2e1b4 (diff) | |
download | ATCD-36d7aee1a214c14b1621bf773e9aae82c9971af5.tar.gz |
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:
Diffstat (limited to 'TAO/tao/Reply_Dispatcher.cpp')
-rw-r--r-- | TAO/tao/Reply_Dispatcher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TAO/tao/Reply_Dispatcher.cpp b/TAO/tao/Reply_Dispatcher.cpp index a2ebe2f4838..620f87f65e2 100644 --- a/TAO/tao/Reply_Dispatcher.cpp +++ b/TAO/tao/Reply_Dispatcher.cpp @@ -11,7 +11,7 @@ TAO_Reply_Dispatcher::TAO_Reply_Dispatcher (ACE_Allocator *allocator) // Just an invalid reply status. : locate_reply_status_ (GIOP::UNKNOWN_OBJECT) , reply_status_ (GIOP::NO_EXCEPTION) - , refcnt_ (1) + , refcount_ (1) , allocator_(allocator) { } @@ -27,7 +27,7 @@ TAO_Reply_Dispatcher::intrusive_add_ref (TAO_Reply_Dispatcher* rd) { if (rd != 0) { - ++rd->refcnt_; + ++rd->refcount_; } } @@ -36,7 +36,7 @@ TAO_Reply_Dispatcher::intrusive_remove_ref (TAO_Reply_Dispatcher* rd) { if (rd != 0) { - long tmp = --rd->refcnt_; + long const tmp = --rd->refcount_; if (tmp <= 0) { if (rd->allocator_) |