blob: db9631237de9767e46bdd5ab382df81cfbea6e1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// -*- C++ -*-
//
// $Id$
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO::True_RefCount_Policy::True_RefCount_Policy (void)
: refcount_ (1)
{
}
ACE_INLINE void
TAO::True_RefCount_Policy::add_ref (void)
{
++this->refcount_;
}
ACE_INLINE void
TAO::True_RefCount_Policy::remove_ref (void)
{
const unsigned long new_count = --this->refcount_;
if (new_count == 0)
delete this;
}
TAO_END_VERSIONED_NAMESPACE_DECL
|