00001 // -*- C++ -*- 00002 // 00003 //$Id: Refcountable_T.inl 81407 2008-04-24 05:59:30Z johnnyw $ 00004 00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 template <class ACE_LOCK> 00008 ACE_INLINE 00009 ACE_Refcountable_T<ACE_LOCK>::ACE_Refcountable_T (long refcount) 00010 : refcount_ (refcount) 00011 { 00012 } 00013 00014 template <class ACE_LOCK> 00015 ACE_INLINE long 00016 ACE_Refcountable_T<ACE_LOCK>::increment (void) 00017 { 00018 return ++this->refcount_; 00019 } 00020 00021 template <class ACE_LOCK> 00022 ACE_INLINE long 00023 ACE_Refcountable_T<ACE_LOCK>::decrement (void) 00024 { 00025 return --this->refcount_; 00026 } 00027 00028 template <class ACE_LOCK> 00029 ACE_INLINE long 00030 ACE_Refcountable_T<ACE_LOCK>::refcount (void) const 00031 { 00032 return this->refcount_.value (); 00033 } 00034 00035 ACE_END_VERSIONED_NAMESPACE_DECL