|
ACE 8.0.0
|
Wrapper for Dijkstra style general semaphores that work only within one process. More...
#include <Thread_Semaphore.h>


Public Member Functions | |
| ACE_Thread_Semaphore (unsigned int count=1, const ACE_TCHAR *name=0, void *=0, int max=0x7FFFFFFF) | |
| ~ACE_Thread_Semaphore () | |
| Default destructor. | |
| void | dump () const |
| Dump the state of an object. | |
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". | |
| ~ACE_Semaphore () | |
| Implicitly destroy the semaphore. | |
| int | remove () |
| int | acquire () |
| int | acquire (ACE_Time_Value &tv) |
| int | acquire (ACE_Time_Value *tv) |
| int | tryacquire () |
| int | release () |
| int | release (unsigned int release_count) |
| int | acquire_read () |
| int | acquire_write () |
| int | tryacquire_read () |
| int | tryacquire_write () |
| int | tryacquire_write_upgrade () |
| void | dump () const |
| Dump the state of an object. | |
| const ACE_sema_t & | lock () const |
| Return the underlying lock. | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. | |
Public Attributes inherited from ACE_Semaphore | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. | |
Additional Inherited Members | |
Protected Attributes inherited from ACE_Semaphore | |
| ACE_sema_t | semaphore_ |
| bool | removed_ |
Wrapper for Dijkstra style general semaphores that work only within one process.
| 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.
|
inline |
Default destructor.
| void ACE_Thread_Semaphore::dump | ( | ) | const |
Dump the state of an object.
| ACE_Thread_Semaphore::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.