Thread_Semaphore.cpp

Go to the documentation of this file.
00001 /**
00002  * @file Thread_Semaphore.cpp
00003  *
00004  * Thread_Semaphore.cpp,v 4.7 2005/10/28 23:55:10 ossama Exp
00005  *
00006  * Originally in Synch.cpp
00007  *
00008  * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
00009  */
00010 
00011 #include "ace/Thread_Semaphore.h"
00012 
00013 #if defined (ACE_HAS_THREADS)
00014 
00015 #if !defined (__ACE_INLINE__)
00016 #include "ace/Thread_Semaphore.inl"
00017 #endif /* __ACE_INLINE__ */
00018 
00019 #include "ace/ACE.h"
00020 
00021 ACE_RCSID(ace, Thread_Semaphore, "Thread_Semaphore.cpp,v 4.7 2005/10/28 23:55:10 ossama Exp")
00022 
00023 
00024 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00025 
00026 void
00027 ACE_Thread_Semaphore::dump (void) const
00028 {
00029 #if defined (ACE_HAS_DUMP)
00030 // ACE_TRACE ("ACE_Thread_Semaphore::dump");
00031 
00032   ACE_Semaphore::dump ();
00033 #endif /* ACE_HAS_DUMP */
00034 }
00035 
00036 ACE_Thread_Semaphore::ACE_Thread_Semaphore (unsigned int count,
00037                                             const ACE_TCHAR *name,
00038                                             void *arg,
00039                                             int max)
00040   : ACE_Semaphore (count, USYNC_THREAD, name, arg, max)
00041 {
00042 // ACE_TRACE ("ACE_Thread_Semaphore::ACE_Thread_Semaphore");
00043 }
00044 
00045 /*****************************************************************************/
00046 
00047 ACE_Thread_Semaphore *
00048 ACE_Malloc_Lock_Adapter_T<ACE_Thread_Semaphore>::operator () (const ACE_TCHAR *name)
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 }
00059 
00060 ACE_END_VERSIONED_NAMESPACE_DECL
00061 
00062 #endif /* ACE_HAS_THREADS */

Generated on Thu Nov 9 09:42:06 2006 for ACE by doxygen 1.3.6