diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-08-07 11:49:17 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-08-07 11:49:17 +0000 |
commit | 7dabf33b58d92db1c25e7a962c0d46d8c7d086c8 (patch) | |
tree | 3383d6d03192a47cb934f1fb206cc55dae0c4d69 /TAO/tao/Stub.cpp | |
parent | f1c895e14a25af822da1196955e23c8b3bb4e585 (diff) | |
download | ATCD-7dabf33b58d92db1c25e7a962c0d46d8c7d086c8.tar.gz |
Tue Aug 7 11:48:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/Stub.cpp')
-rw-r--r-- | TAO/tao/Stub.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/TAO/tao/Stub.cpp b/TAO/tao/Stub.cpp index ad19bfd6e4b..bfc563eaed7 100644 --- a/TAO/tao/Stub.cpp +++ b/TAO/tao/Stub.cpp @@ -551,4 +551,17 @@ TAO_Stub::marshal (TAO_OutputCDR &cdr) return (CORBA::Boolean) cdr.good_bit (); } +void +TAO_Stub::_incr_refcnt (void) +{ + ++this->refcount_; +} + +void +TAO_Stub::_decr_refcnt (void) +{ + if (--this->refcount_ == 0) + delete this; +} + TAO_END_VERSIONED_NAMESPACE_DECL |