ACE  6.4.1
Public Member Functions | Public Attributes | List of all members
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]

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 destructor. More...
 
void dump (void) const
 Dump the state of an object. More...
 
- Public Member Functions inherited from ACE_Semaphore
 ACE_Semaphore (unsigned int count=1, int type=USYNC_THREAD, const ACE_TCHAR *name=0, void *=0, int max=0x7fffffff)
 Initialize the semaphore, with initial value of "count". More...
 
 ~ACE_Semaphore (void)
 Implicitly destroy the semaphore. More...
 
int remove (void)
 
int acquire (void)
 
int acquire (ACE_Time_Value &tv)
 
int acquire (ACE_Time_Value *tv)
 
int tryacquire (void)
 
int release (void)
 
int release (unsigned int release_count)
 
int acquire_read (void)
 
int acquire_write (void)
 
int tryacquire_read (void)
 
int tryacquire_write (void)
 
int tryacquire_write_upgrade (void)
 
void dump (void) const
 Dump the state of an object. More...
 
const ACE_sema_t & lock (void) const
 Return the underlying lock. More...
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...
 
- Public Attributes inherited from ACE_Semaphore
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...
 

Additional Inherited Members

- Protected Attributes inherited from ACE_Semaphore
ACE_sema_t semaphore_
 
bool removed_
 

Detailed Description

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

Constructor & Destructor Documentation

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

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

ACE_Thread_Semaphore::~ACE_Thread_Semaphore ( void  )
inline

Default destructor.

Member Function Documentation

void ACE_Thread_Semaphore::dump ( void  ) const

Dump the state of an object.

Member Data Documentation

ACE_Thread_Semaphore::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.


The documentation for this class was generated from the following files: