diff options
Diffstat (limited to 'ace/Svcconf/Service_Repository.i')
-rw-r--r-- | ace/Svcconf/Service_Repository.i | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ace/Svcconf/Service_Repository.i b/ace/Svcconf/Service_Repository.i new file mode 100644 index 00000000000..053ff2673a8 --- /dev/null +++ b/ace/Svcconf/Service_Repository.i @@ -0,0 +1,31 @@ +/* -*- C++ -*- */ +// $Id$ + +// Service_Repository.i + +// Returns a count of the number of currently valid entries (counting +// both resumed and suspended entries). + +ACE_INLINE int +ACE_Service_Repository::current_size (void) const +{ + ACE_TRACE ("ACE_Service_Repository::current_size"); + ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, (ACE_Thread_Mutex &) this->lock_, -1)); + return this->current_size_; +} + +// Returns a count of the total number of possible entries in the +// table. + +ACE_INLINE int +ACE_Service_Repository::total_size (void) const +{ + ACE_TRACE ("ACE_Service_Repository::total_size"); + ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, (ACE_Thread_Mutex &) this->lock_, -1)); + return this->total_size_; +} + +ACE_INLINE +ACE_Service_Repository_Iterator::~ACE_Service_Repository_Iterator (void) +{ +} |