summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2018-06-27 10:24:04 +0200
committerGitHub <noreply@github.com>2018-06-27 10:24:04 +0200
commitd271d46ebb21768b6860f619bdb7df1029e4470c (patch)
treeb9844dbd93663aa68c9ef0fe24c75f00609b4c8f
parent29cc7e3b67270ef74747edda70bead9ee46cbabe (diff)
parent7165c10ea6079dd7a01d5e490a4399d40d6f26f7 (diff)
downloadATCD-d271d46ebb21768b6860f619bdb7df1029e4470c.tar.gz
Merge pull request #648 from jwillemsen/jwi-atomicdefine
Set new define when we are using std atomic refcount in TAO object
-rw-r--r--TAO/tao/Object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/TAO/tao/Object.h b/TAO/tao/Object.h
index 680428190b5..a2d2dd26fae 100644
--- a/TAO/tao/Object.h
+++ b/TAO/tao/Object.h
@@ -345,6 +345,7 @@ namespace CORBA
/// Number of outstanding references to this object.
#if defined (ACE_HAS_CPP11)
+# define TAO_OBJECT_USES_STD_ATOMIC_REFCOUNT
std::atomic<uint32_t> refcount_;
#else
ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_;