ACE_Malloc_Lock_Adapter_T< ACE_LOCK > Class Template Reference

Template functor adapter for lock strategies used with ACE_Malloc_T. More...

#include <Malloc_T.h>

List of all members.

Public Member Functions

ACE_LOCK * operator() (const ACE_TCHAR *myname)


Detailed Description

template<class ACE_LOCK>
class ACE_Malloc_Lock_Adapter_T< ACE_LOCK >

Template functor adapter for lock strategies used with ACE_Malloc_T.

Template specialization of ACE_Malloc_Lock_Adapter_T for ACE_Process_Semaphore.

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.

This is needed since the ctor for ACE_Process_Semaphore doesn't match the standard form used by other lock strategy classes.


Member Function Documentation

template<class ACE_LOCK >
ACE_Thread_Semaphore * ACE_Malloc_Lock_Adapter_T< ACE_LOCK >::operator() ( const ACE_TCHAR myname  )  [inline]


The documentation for this class was generated from the following files:

Generated on Mon Jul 13 16:12:05 2009 for ACE by  doxygen 1.5.8