ACE_Malloc_Lock_Adapter_T< ACE_Thread_Semaphore > Class Template Reference

Template specialization of ACE_Malloc_Lock_Adapter_T for ACE_Thread_Semaphore. More...

#include <Thread_Semaphore.h>

List of all members.

Public Member Functions

ACE_Thread_Semaphoreoperator() (const ACE_TCHAR *name)


Detailed Description

template<>
class ACE_Malloc_Lock_Adapter_T< ACE_Thread_Semaphore >

Template specialization of ACE_Malloc_Lock_Adapter_T for ACE_Thread_Semaphore.

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

Definition at line 74 of file Thread_Semaphore.h.


Member Function Documentation

ACE_Thread_Semaphore * ACE_Malloc_Lock_Adapter_T< ACE_Thread_Semaphore >::operator() const ACE_TCHAR name  ) 
 

Definition at line 48 of file Thread_Semaphore.cpp.

References ACE_DIRECTORY_SEPARATOR_CHAR, ACE_NEW_RETURN, and ACE_TCHAR.

00049 {
00050   ACE_Thread_Semaphore *p = 0;
00051   if (name == 0)
00052     ACE_NEW_RETURN (p, ACE_Thread_Semaphore (1, name), 0);
00053   else
00054     ACE_NEW_RETURN (p, ACE_Thread_Semaphore (1, ACE::basename (name,
00055                                                                ACE_DIRECTORY_SEPARATOR_CHAR)),
00056                     0);
00057   return p;
00058 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:24:19 2006 for ACE by doxygen 1.3.6