00001 // -*- C++ -*- 00002 // 00003 // $Id: ESF_RefCount_Guard.inl 77031 2007-02-12 15:20:17Z johnnyw $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 template<class T> ACE_INLINE 00008 TAO_ESF_RefCount_Guard<T>:: 00009 TAO_ESF_RefCount_Guard (T &refcount) 00010 : refcount_ (refcount) 00011 { 00012 ++this->refcount_; 00013 } 00014 00015 template<class T> ACE_INLINE 00016 TAO_ESF_RefCount_Guard<T>:: 00017 ~TAO_ESF_RefCount_Guard (void) 00018 { 00019 --this->refcount_; 00020 } 00021 00022 TAO_END_VERSIONED_NAMESPACE_DECL