diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2003-04-27 00:26:09 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2003-04-27 00:26:09 +0000 |
commit | 036a8d3337cf70c5df3c58d8a961aace10b2a207 (patch) | |
tree | e6240d3e868a452f5655888a54d0fe7a4c3260cc /TAO/tao/PortableServer/Servant_Base.cpp | |
parent | 7b744a0d1950f5ac21c779409f1bb2a39214bb8a (diff) | |
download | ATCD-036a8d3337cf70c5df3c58d8a961aace10b2a207.tar.gz |
ChangeLogTag:Sat Apr 26 12:00:36 2003 Venkita Subramonian <venkita@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/PortableServer/Servant_Base.cpp')
-rw-r--r-- | TAO/tao/PortableServer/Servant_Base.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/TAO/tao/PortableServer/Servant_Base.cpp b/TAO/tao/PortableServer/Servant_Base.cpp index 2b6843ed37f..32b3f9b5bf1 100644 --- a/TAO/tao/PortableServer/Servant_Base.cpp +++ b/TAO/tao/PortableServer/Servant_Base.cpp @@ -360,9 +360,13 @@ TAO_RefCountServantBase::_remove_ref (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) const CORBA::ULong new_count = --this->ref_count_; if (new_count == 0) - { - delete this; - } + delete this; +} + +long +TAO_RefCountServantBase::_ref_count (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) const +{ + return this->ref_count_.value (); } TAO_RefCountServantBase::TAO_RefCountServantBase (void) |