diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-06-16 07:58:09 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-06-16 07:58:09 +0000 |
commit | 5db6a116406b02ad826677d56474373139b5e461 (patch) | |
tree | a52a3ebe70100dd6ee98945618918994ed8f30cc /ace/Service_Repository.inl | |
parent | 393a25f7bd25beca509700ba1a568442c1a0921c (diff) | |
download | ATCD-5db6a116406b02ad826677d56474373139b5e461.tar.gz |
ChangeLogTag: Wed Jun 16 07:56:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ace/Service_Repository.inl')
-rw-r--r-- | ace/Service_Repository.inl | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ace/Service_Repository.inl b/ace/Service_Repository.inl new file mode 100644 index 00000000000..6872433596e --- /dev/null +++ b/ace/Service_Repository.inl @@ -0,0 +1,36 @@ +/* -*- C++ -*- */ +// $Id$ + +// Service_Repository.i + +// Returns a count of the number of currently valid entries (counting +// both resumed and suspended entries). + +#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) +#include "ace/Guard_T.h" +#include "ace/Thread_Mutex.h" +#endif /* ACE_MT_SAFE */ + +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) +{ +} |