summaryrefslogtreecommitdiff
path: root/ace/Malloc_T.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Malloc_T.inl')
-rw-r--r--ace/Malloc_T.inl12
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)
{