ACE_Thread_Semaphore Class Reference

Wrapper for Dijkstra style general semaphores that work only within one process. More...

#include <Thread_Semaphore.h>

Inheritance diagram for ACE_Thread_Semaphore:

Inheritance graph
[legend]
Collaboration diagram for ACE_Thread_Semaphore:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_Thread_Semaphore (unsigned int count=1, const ACE_TCHAR *name=0, void *=0, int max=0x7FFFFFFF)
 ~ACE_Thread_Semaphore (void)
 Default dtor.

void dump (void) const
 Dump the state of an object.


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.


Detailed Description

Wrapper for Dijkstra style general semaphores that work only within one process.

Definition at line 40 of file Thread_Semaphore.h.


Constructor & Destructor Documentation

ACE_Thread_Semaphore::ACE_Thread_Semaphore unsigned int  count = 1,
const ACE_TCHAR name = 0,
void *  = 0,
int  max = 0x7FFFFFFF
 

Initialize the semaphore, with an initial value of count, maximum value of max, and unlocked by default.

Definition at line 36 of file Thread_Semaphore.cpp.

References ACE_TCHAR.

00040   : ACE_Semaphore (count, USYNC_THREAD, name, arg, max)
00041 {
00042 // ACE_TRACE ("ACE_Thread_Semaphore::ACE_Thread_Semaphore");
00043 }

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_Thread_Semaphore::~ACE_Thread_Semaphore void   ) 
 

Default dtor.

Definition at line 8 of file Thread_Semaphore.inl.

00009 {
00010 }


Member Function Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL void ACE_Thread_Semaphore::dump void   )  const
 

Dump the state of an object.

Reimplemented from ACE_Semaphore.

Definition at line 27 of file Thread_Semaphore.cpp.

References ACE_Semaphore::dump().

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 }


Member Data Documentation

ACE_Thread_Semaphore::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Reimplemented from ACE_Semaphore.

Definition at line 57 of file Thread_Semaphore.h.


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