summaryrefslogtreecommitdiff
path: root/ace/Malloc_T.h
diff options
context:
space:
mode:
authordhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-12-18 22:56:52 +0000
committerdhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-12-18 22:56:52 +0000
commitf0a4a90cd04ef8c99c34f16338d75843a8245cb4 (patch)
treee3742043e6870ea1e3cc8c14fac9d2ecd961b747 /ace/Malloc_T.h
parent2bc6e22c1cf1c5760ddf15d79d0ffe11b5453dd7 (diff)
downloadATCD-f0a4a90cd04ef8c99c34f16338d75843a8245cb4.tar.gz
ChangeLogTag:Thu Dec 18 22:43:09 UTC 2003 Don Hinton <dhinton@dresystems.com>
Diffstat (limited to 'ace/Malloc_T.h')
-rw-r--r--ace/Malloc_T.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/ace/Malloc_T.h b/ace/Malloc_T.h
index 287a51b2898..da3f316ff46 100644
--- a/ace/Malloc_T.h
+++ b/ace/Malloc_T.h
@@ -650,6 +650,30 @@ private:
int bad_flag_;
};
+/*****************************************************************************/
+
+/**
+ * @class ACE_Malloc_Lock_Adapter_T
+ *
+ * @brief Template functor adapter for lock strategies used with ACE_Malloc_T.
+ *
+ * This class acts as a factory for lock strategies that have various ctor
+ * signatures. If the lock strategy's ctor takes an ACE_TCHAR* as the first
+ * and only required parameter, it will just work. Otherwise use template
+ * specialization to create a version that matches the lock strategy's ctor
+ * signature. See ACE_Process_Semaphore and ACE_Thread_Semaphore for
+ * examples.
+ *
+ */
+template <class ACE_LOCK>
+class ACE_Malloc_Lock_Adapter_T
+{
+public:
+ ACE_LOCK * operator () (const ACE_TCHAR *name);
+};
+
+/*****************************************************************************/
+
/**
* @class ACE_Malloc_LIFO_Iterator_T
*