[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / Service_Repository.inl
blob621c837ef532665bd74d0b254a6b19f3321c68fb
1 // -*- C++ -*-
2 //
3 // $Id: Service_Repository.inl 80826 2008-03-04 14:51:23Z wotte $
5 // Returns a count of the number of currently valid entries (counting
6 // both resumed and suspended entries).
8 #if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
9 #include "ace/Guard_T.h"
10 #include "ace/Thread_Mutex.h"
11 #endif /* ACE_MT_SAFE */
13 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
15 ACE_INLINE size_t
16 ACE_Service_Repository::current_size (void) const
18   ACE_TRACE ("ACE_Service_Repository::current_size");
19   ACE_MT (ACE_GUARD_RETURN (ACE_Recursive_Thread_Mutex,
20                             ace_mon,
21                             (ACE_Recursive_Thread_Mutex &) this->lock_, 0));
22   return this->current_size_;
25 // Returns a count of the total number of possible entries in the
26 // table.
28 ACE_INLINE size_t
29 ACE_Service_Repository::total_size (void) const
31   ACE_TRACE ("ACE_Service_Repository::total_size");
32   ACE_MT (ACE_GUARD_RETURN (ACE_Recursive_Thread_Mutex,
33                             ace_mon,
34                             (ACE_Recursive_Thread_Mutex &) this->lock_, 0));
35   return this->total_size_;
38 ACE_INLINE int
39 ACE_Service_Repository_Iterator::done (void) const
41   ACE_TRACE ("ACE_Service_Repository_Iterator::done");
43   return this->next_ >= this->svc_rep_.current_size_;
46 ACE_INLINE
47 ACE_Service_Repository_Iterator::~ACE_Service_Repository_Iterator (void)
51 ACE_END_VERSIONED_NAMESPACE_DECL