summaryrefslogtreecommitdiff
path: root/TAO/tao/Object.i
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-26 23:41:28 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-26 23:41:28 +0000
commit577f4a034ba498e53d21fcccba37bcd92bd10b66 (patch)
tree5b97a9c7672a1a3424d3f8061dbcf9bd968d22d2 /TAO/tao/Object.i
parent72189f1cb441a64ceabba4e9709f0da38023a6a6 (diff)
downloadATCD-577f4a034ba498e53d21fcccba37bcd92bd10b66.tar.gz
ChangeLogTag:Tue May 26 18:39:11 1998 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Object.i')
-rw-r--r--TAO/tao/Object.i12
1 files changed, 2 insertions, 10 deletions
diff --git a/TAO/tao/Object.i b/TAO/tao/Object.i
index 73ecbc00f99..54f0541ef5c 100644
--- a/TAO/tao/Object.i
+++ b/TAO/tao/Object.i
@@ -5,22 +5,14 @@
ACE_INLINE ULONG
CORBA_Object::AddRef (void)
{
- ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, guard, this->IUnknown_lock_, 0));
-
return ++this->refcount_;
}
ACE_INLINE ULONG
CORBA_Object::Release (void)
{
- {
- ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, mon, this->IUnknown_lock_, 0));
-
- ACE_ASSERT (this != 0);
-
- if (--this->refcount_ != 0)
- return this->refcount_;
- }
+ if (--this->refcount_ != 0)
+ return this->refcount_;
delete this;
return 0;
}