Template specialization of ACE_Malloc_Lock_Adapter_T for ACE_Process_Semaphore. More...
#include <Process_Semaphore.h>
Public Member Functions | |
ACE_Process_Semaphore * | operator() (const ACE_TCHAR *name) |
Template specialization of ACE_Malloc_Lock_Adapter_T for ACE_Process_Semaphore.
This is needed since the ctor for ACE_Process_Semaphore doesn't match the standard form used by other lock strategy classes.
Definition at line 145 of file Process_Semaphore.h.
ACE_Process_Semaphore * ACE_Malloc_Lock_Adapter_T< ACE_Process_Semaphore >::operator() | ( | const ACE_TCHAR * | name | ) |
Definition at line 99 of file Process_Semaphore.cpp.
{ ACE_Process_Semaphore *p = 0; if (name == 0) ACE_NEW_RETURN (p, ACE_Process_Semaphore (1, name), 0); else ACE_NEW_RETURN (p, ACE_Process_Semaphore (1, ACE::basename (name, ACE_DIRECTORY_SEPARATOR_CHAR)), 0); return p; }