diff options
Diffstat (limited to 'ACE/ace/Mutex.h')
-rw-r--r-- | ACE/ace/Mutex.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ACE/ace/Mutex.h b/ACE/ace/Mutex.h index 159f57da038..2f371a772a5 100644 --- a/ACE/ace/Mutex.h +++ b/ACE/ace/Mutex.h @@ -55,17 +55,17 @@ public: mode_t mode = ACE_DEFAULT_FILE_PERMS); /// Implicitly destroy the mutex. - ~ACE_Mutex (void); + ~ACE_Mutex (); /// Explicitly destroy the mutex. /** * @note Only one thread should call this method since it doesn't * protect against race conditions. */ - int remove (void); + int remove (); /// Acquire lock ownership (wait on queue if necessary). - int acquire (void); + int acquire (); /// Block the thread until the mutex is acquired or @a tv times out, /// in which case -1 is returned and @c errno == @c ETIME. @@ -94,24 +94,24 @@ public: * @return -1 on failure. If we "failed" because someone * else already had the lock, @c errno is set to @c EBUSY. */ - int tryacquire (void); + int tryacquire (); /// Release lock and unblock a thread at head of queue. - int release (void); + int release (); /// Acquire mutex ownership. /** * This calls @c acquire and is only here to make the @c ACE_Mutex * interface consistent with the other synchronization APIs. */ - int acquire_read (void); + int acquire_read (); /// Acquire mutex ownership. /** * This calls @c acquire and is only here to make the @c ACE_Mutex * interface consistent with the other synchronization APIs. */ - int acquire_write (void); + int acquire_write (); /// Conditionally acquire mutex (i.e., won't block). /** @@ -121,7 +121,7 @@ public: * @return -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 mutex (i.e., won't block). /** @@ -131,25 +131,25 @@ public: * @return -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 for consistency with the other synchronization * APIs and usability with Lock adapters. Assumes the caller already has * acquired the mutex and returns 0 in all cases. */ - int tryacquire_write_upgrade (void); + int tryacquire_write_upgrade (); /// Return the underlying mutex. - const ACE_mutex_t &lock (void) const; - ACE_mutex_t &lock (void); + const ACE_mutex_t &lock () const; + ACE_mutex_t &lock (); /// If a file was created as the underlying storage for the mutex, /// remove it from the filesystem (for process-shared mutexes). static int unlink (const ACE_TCHAR *name); /// Dump the state of an object. - void dump (void) const; + void dump () const; /// Declare the dynamic allocation hooks. ACE_ALLOC_HOOK_DECLARE; |