summaryrefslogtreecommitdiff
path: root/TAO/tao/Principal.h
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2005-07-19 10:12:43 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2005-07-19 10:12:43 +0000
commit58931bcff8836319309cf701d3b26cda6c330577 (patch)
tree923c49d0d7dea89e16a30ab5522c6e45c9d7c022 /TAO/tao/Principal.h
parent4a096854f436535c8b01c294965a7c48fbde39f8 (diff)
downloadATCD-58931bcff8836319309cf701d3b26cda6c330577.tar.gz
ChangeLogTag: Tue Jul 19 09:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/Principal.h')
-rw-r--r--TAO/tao/Principal.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/TAO/tao/Principal.h b/TAO/tao/Principal.h
index c64bf36b3e9..4010df0a507 100644
--- a/TAO/tao/Principal.h
+++ b/TAO/tao/Principal.h
@@ -24,6 +24,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "ace/Atomic_Op.h"
#include "OctetSeqC.h"
#include "Pseudo_VarOut_T.h"
#include "CORBA_methods.h"
@@ -88,12 +89,8 @@ namespace CORBA
Principal (const CORBA::Principal_ptr &);
private:
- /// Number of outstanding references to this object.
- CORBA::ULong refcount_;
-
- /// Protect the reference count, this is OK because we do no
- /// duplicates or releases on the critical path.
- TAO_SYNCH_MUTEX refcount_mutex_;
+ /// Reference counter.
+ ACE_Atomic_Op<TAO_SYNCH_MUTEX, CORBA::ULong> refcount_;
};
} // End CORBA namespace