ACE_Process_Semaphore Class ReferenceWrapper for Dijkstra style general semaphores that work across processes. More...
Collaboration diagram for ACE_Process_Semaphore:
![]()
Detailed DescriptionWrapper for Dijkstra style general semaphores that work across processes.Constructor & Destructor Documentation
Initialize the semaphore, with an initial value of count and a maximum value of max.
Member Function Documentation
Explicitly destroy the semaphore. Note that only one thread should call this method since it doesn't protect against race conditions.
Block the thread until the semaphore count becomes greater than 0, then decrement it.
Conditionally decrement the semaphore if count is greater than 0 (i.e., won't block). Returns -1 on failure. If we "failed" because someone else already had the lock,
Increment the semaphore, potentially unblocking a waiting thread.
Acquire semaphore ownership. This calls <acquire> and is only here to make the ACE_Process_Semaphore interface consistent with the other synchronization APIs.
Acquire semaphore ownership. This calls <acquire> and is only here to make the ACE_Process_Semaphore interface consistent with the other synchronization APIs.
Conditionally acquire semaphore (i.e., won't block). This calls <tryacquire> and is only here to make the ACE_Process_Semaphore interface consistent with the other synchronization APIs. Returns -1 on failure. If we "failed" because someone else already had the lock,
Conditionally acquire semaphore (i.e., won't block). This calls <tryacquire> and is only here to make the ACE_Process_Semaphore interface consistent with the other synchronization APIs. Returns -1 on failure. If we "failed" because someone else already had the lock,
This is only here to make the ACE_Process_Semaphore interface consistent with the other synchronization APIs. Assumes the caller has already acquired the semaphore using one of the above calls, and returns 0 (success) always.
Return the underlying lock.
Dump the state of an object.
Member Data DocumentationDeclare the dynamic allocation hooks.
The documentation for this class was generated from the following files: Generated on Mon Sep 15 07:16:15 2008 for ACE by ![]() |