#include <Malloc_T.h>
Public Member Functions | |
ACE_LOCK * | operator() (const ACE_TCHAR *myname) |
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.
Definition at line 888 of file Malloc_T.h.
|
Definition at line 1035 of file Malloc_T.cpp. References ACE_DIRECTORY_SEPARATOR_CHAR, ACE_NEW_RETURN, and ACE_TCHAR.
01036 { 01037 ACE_LOCK *p = 0; 01038 if (name == 0) 01039 ACE_NEW_RETURN (p, ACE_LOCK (name), 0); 01040 else 01041 ACE_NEW_RETURN (p, ACE_LOCK (ACE::basename (name, 01042 ACE_DIRECTORY_SEPARATOR_CHAR)), 01043 0); 01044 return p; 01045 } |