summaryrefslogtreecommitdiff
path: root/ace/Malloc_T.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Malloc_T.h')
-rw-r--r--ace/Malloc_T.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/ace/Malloc_T.h b/ace/Malloc_T.h
index ada5fc23236..15c6c807b83 100644
--- a/ace/Malloc_T.h
+++ b/ace/Malloc_T.h
@@ -115,6 +115,9 @@ public:
/// Return a chunk of memory back to free list cache.
void free (void *);
+ /// Return the number of chunks available in the cache.
+ size_t pool_depth (void);
+
private:
/// Remember how we allocate the memory in the first place so
/// we can clear things up later.
@@ -177,6 +180,9 @@ public:
/// Return a chunk of memory back to free list cache.
void free (void *);
+ /// Return the number of chunks available in the cache.
+ size_t pool_depth (void);
+
private:
/// Remember how we allocate the memory in the first place so
/// we can clear things up later.
@@ -666,13 +672,6 @@ private:
* examples.
*
*/
-template <class ACE_LOCK>
-class ACE_Malloc_Lock_Adapter_T
-{
-public:
- ACE_LOCK * operator () (const ACE_TCHAR *name);
-};
-
/*****************************************************************************/
/**
@@ -875,6 +874,13 @@ public:
const char *name = 0);
};
+template <class ACE_LOCK>
+class ACE_Malloc_Lock_Adapter_T
+{
+public:
+ ACE_LOCK * operator () (const ACE_TCHAR *myname);
+};
+
#if defined (__ACE_INLINE__)
#include "ace/Malloc_T.inl"
#endif /* __ACE_INLINE__ */