2 // Returns a count of the number of currently valid entries (counting
3 // both resumed and suspended entries).
5 #if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
6 #include "ace/Guard_T.h"
7 #include "ace/Thread_Mutex.h"
8 #endif /* ACE_MT_SAFE */
10 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
13 ACE_Service_Repository::current_size () const
15 ACE_TRACE ("ACE_Service_Repository::current_size");
16 ACE_MT (ACE_GUARD_RETURN (ACE_Recursive_Thread_Mutex,
18 (ACE_Recursive_Thread_Mutex &) this->lock_, 0));
19 return this->service_array_.size ();
22 ACE_INLINE ACE_SYNCH_RECURSIVE_MUTEX&
23 ACE_Service_Repository::lock () const
29 ACE_Service_Repository_Iterator::done () const
31 ACE_TRACE ("ACE_Service_Repository_Iterator::done");
33 return this->next_ >= this->svc_rep_.current_size ();
37 ACE_Service_Repository_Iterator::~ACE_Service_Repository_Iterator ()
41 ACE_END_VERSIONED_NAMESPACE_DECL