summaryrefslogtreecommitdiff
path: root/TAO/tao/Synch_Refcountable.cpp
blob: 05f2a835ad1e7d2e531efd70803eada51d04107d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "Synch_Refcountable.h"


#if !defined (__ACE_INLINE__)
# include "Synch_Refcountable.inl"
#endif /* __ACE_INLINE__ */

ACE_RCSID (tao,
           Synch_Refcountable,
           "$Id$")

TAO_Synch_Refcountable::TAO_Synch_Refcountable (ACE_Lock *lock,
                                                int refcount)
  : ACE_Refcountable (refcount)
  , refcount_lock_ (lock)
{
}

TAO_Synch_Refcountable::~TAO_Synch_Refcountable (void)
{
  ACE_ASSERT(this->refcount_ == 0);
  delete this->refcount_lock_;
}