diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-26 23:41:28 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-26 23:41:28 +0000 |
commit | 577f4a034ba498e53d21fcccba37bcd92bd10b66 (patch) | |
tree | 5b97a9c7672a1a3424d3f8061dbcf9bd968d22d2 /TAO/tao/Object.i | |
parent | 72189f1cb441a64ceabba4e9709f0da38023a6a6 (diff) | |
download | ATCD-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.i | 12 |
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; } |