Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / Framework_Component.inl
blob1fb2de38b85df5eb9bd14e09fa6c536261937620
1 // -*- C++ -*-
2 //
3 // $Id: Framework_Component.inl 80826 2008-03-04 14:51:23Z wotte $
5 #include "ace/ACE.h"
6 #include "ace/Guard_T.h"
8 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
10 ACE_INLINE
11 ACE_Framework_Component::ACE_Framework_Component (void *_this,
12                                                   const ACE_TCHAR *dll_name,
13                                                   const ACE_TCHAR *name)
14   :  this_ (_this),
15      dll_name_ (ACE::strnew (dll_name ? dll_name : ACE_TEXT (""))),
16      name_ (ACE::strnew (name ? name : ACE_TEXT ("")))
18   ACE_TRACE ("ACE_Framework_Component::ctor");
21 /***************************************************************/
23 ACE_INLINE int
24 ACE_Framework_Repository::current_size (void) const
26   ACE_TRACE ("ACE_Framework_Repository::current_size");
27   ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, (ACE_Thread_Mutex &) this->lock_, -1));
28   return this->current_size_;
31 ACE_INLINE int
32 ACE_Framework_Repository::total_size (void) const
34   ACE_TRACE ("ACE_Framework_Repository::total_size");
35   ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, (ACE_Thread_Mutex &) this->lock_, -1));
36   return this->total_size_;
39 ACE_END_VERSIONED_NAMESPACE_DECL