diff options
author | Steve Huston <shuston@riverace.com> | 2004-09-14 15:33:15 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2004-09-14 15:33:15 +0000 |
commit | b091371c7269a98f624bdc2ecaa3ce3485274797 (patch) | |
tree | 4a30cd9314adb3d8a1b6b2cd1c7b8e8b083b51d0 /ace/Malloc_T.inl | |
parent | d6146d5d020eb776431cf2c4f3aff9b888bf0b57 (diff) | |
download | ATCD-b091371c7269a98f624bdc2ecaa3ce3485274797.tar.gz |
ChangeLogTag:Tue Sep 14 11:07:25 2004 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/Malloc_T.inl')
-rw-r--r-- | ace/Malloc_T.inl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ace/Malloc_T.inl b/ace/Malloc_T.inl index b24436fb868..109d1153336 100644 --- a/ace/Malloc_T.inl +++ b/ace/Malloc_T.inl @@ -67,6 +67,12 @@ ACE_Cached_Allocator<T, ACE_LOCK>::free (void * ptr) this->free_list_.add ((ACE_Cached_Mem_Pool_Node<T> *) ptr) ; } +template <class T, class ACE_LOCK> ACE_INLINE size_t +ACE_Cached_Allocator<T, ACE_LOCK>::pool_depth (void) +{ + return this->free_list_.size (); +} + template <class ACE_LOCK> ACE_INLINE void * ACE_Dynamic_Cached_Allocator<ACE_LOCK>::malloc (size_t nbytes) { @@ -107,6 +113,12 @@ ACE_Dynamic_Cached_Allocator<ACE_LOCK>::free (void * ptr) this->free_list_.add ((ACE_Cached_Mem_Pool_Node<char> *) ptr); } +template <class ACE_LOCK> ACE_INLINE size_t +ACE_Dynamic_Cached_Allocator<ACE_LOCK>::pool_depth (void) +{ + return this->free_list_.size (); +} + template <class MALLOC> ACE_INLINE void * ACE_Allocator_Adapter<MALLOC>::malloc (size_t nbytes) { |