Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / ace / Service_Repository.inl
blob09fcf73887644d536e10fcf2d0f0ae3d2a5bd633
1 // -*- C++ -*-
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
12 ACE_INLINE size_t
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,
17                             ace_mon,
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
25   return this->lock_;
28 ACE_INLINE int
29 ACE_Service_Repository_Iterator::done () const
31   ACE_TRACE ("ACE_Service_Repository_Iterator::done");
33   return this->next_ >= this->svc_rep_.current_size ();
36 ACE_INLINE
37 ACE_Service_Repository_Iterator::~ACE_Service_Repository_Iterator ()
41 ACE_END_VERSIONED_NAMESPACE_DECL