summaryrefslogtreecommitdiff
path: root/TAO/tao/Utils/Synch_Refcountable.inl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Utils/Synch_Refcountable.inl')
-rw-r--r--TAO/tao/Utils/Synch_Refcountable.inl29
1 files changed, 29 insertions, 0 deletions
diff --git a/TAO/tao/Utils/Synch_Refcountable.inl b/TAO/tao/Utils/Synch_Refcountable.inl
new file mode 100644
index 00000000000..2139918ab50
--- /dev/null
+++ b/TAO/tao/Utils/Synch_Refcountable.inl
@@ -0,0 +1,29 @@
+// -*- C++ -*-
+//
+//$Id$
+
+#include "ace/Guard_T.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+ACE_INLINE int
+TAO_Synch_Refcountable::increment (void)
+{
+ ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->refcount_lock_, 0);
+ return ACE_Refcountable::increment ();
+}
+
+ACE_INLINE int
+TAO_Synch_Refcountable::decrement (void)
+{
+ ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->refcount_lock_, 0);
+ return ACE_Refcountable::decrement ();
+}
+
+ACE_INLINE int
+TAO_Synch_Refcountable::refcount (void) const
+{
+ return ACE_Refcountable::refcount ();
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL