diff options
Diffstat (limited to 'ACE/ace/Process_Semaphore.h')
-rw-r--r-- | ACE/ace/Process_Semaphore.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ACE/ace/Process_Semaphore.h b/ACE/ace/Process_Semaphore.h index 8d6860fa2ad..e8fed85e7c4 100644 --- a/ACE/ace/Process_Semaphore.h +++ b/ACE/ace/Process_Semaphore.h @@ -51,11 +51,11 @@ public: * should call this method since it doesn't protect against race * conditions. */ - int remove (void); + int remove (); /// Block the thread until the semaphore count becomes greater than /// 0, then decrement it. - int acquire (void); + int acquire (); /** * Conditionally decrement the semaphore if count is greater than 0 @@ -63,24 +63,24 @@ public: * because someone else already had the lock, @c errno is set to * @c EBUSY. */ - int tryacquire (void); + int tryacquire (); /// Increment the semaphore, potentially unblocking a waiting thread. - int release (void); + int release (); /** * Acquire semaphore ownership. This calls acquire() and is only * here to make the ACE_Process_Semaphore interface consistent * with the other synchronization APIs. */ - int acquire_read (void); + int acquire_read (); /** * Acquire semaphore ownership. This calls acquire() and is only * here to make the ACE_Process_Semaphore interface consistent * with the other synchronization APIs. */ - int acquire_write (void); + int acquire_write (); /** * Conditionally acquire semaphore (i.e., won't block). This calls @@ -89,7 +89,7 @@ public: * Returns -1 on failure. If we "failed" because someone else * already had the lock, @c errno is set to @c EBUSY. */ - int tryacquire_read (void); + int tryacquire_read (); /** * Conditionally acquire semaphore (i.e., won't block). This calls @@ -98,7 +98,7 @@ public: * Returns -1 on failure. If we "failed" because someone else * already had the lock, @c errno is set to @c EBUSY. */ - int tryacquire_write (void); + int tryacquire_write (); /** * This is only here to make the ACE_Process_Semaphore @@ -106,7 +106,7 @@ public: * Assumes the caller has already acquired the semaphore using one of * the above calls, and returns 0 (success) always. */ - int tryacquire_write_upgrade (void); + int tryacquire_write_upgrade (); #if defined (ACE_WIN32) || defined (ACE_HAS_POSIX_SEM) /// Return the underlying lock. |