diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-29 19:17:53 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-29 19:17:53 +0000 |
commit | 7161a256b948f97b3d488e6aae711ef47d496b08 (patch) | |
tree | c32febb5388a5d2c26ad1b177b71177321937919 /ace/Synch.i | |
parent | 411495bc727e9fe542b3958f3b270aa95c2cefbf (diff) | |
download | ATCD-7161a256b948f97b3d488e6aae711ef47d496b08.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Synch.i')
-rw-r--r-- | ace/Synch.i | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/ace/Synch.i b/ace/Synch.i index d76ba3a6932..50381619d9f 100644 --- a/ace/Synch.i +++ b/ace/Synch.i @@ -554,3 +554,121 @@ ACE_Recursive_Thread_Mutex::tryacquire_write (void) #endif /* ACE_HAS_THREADS */ +// Explicitly destroy the mutex. +ACE_INLINE int +ACE_Process_Mutex::remove (void) +{ + return this->lock_->remove (); +} + +// Acquire lock ownership (wait on priority queue if necessary). +ACE_INLINE int +ACE_Process_Mutex::acquire (void) +{ + return this->lock_->acquire (); +} + +// Conditionally acquire lock (i.e., don't wait on queue). +ACE_INLINE int +ACE_Process_Mutex::tryacquire (void) +{ + return this->lock_->tryacquire (); +} + +// Release lock and unblock a thread at head of priority queue. +ACE_INLINE int +ACE_Process_Mutex::release (void) +{ + return this->lock_->release (); +} + +// Acquire lock ownership (wait on priority queue if necessary). +ACE_INLINE int +ACE_Process_Mutex::acquire_read (void) +{ + return this->lock_->acquire_read (); +} + +// Acquire lock ownership (wait on priority queue if necessary). +ACE_INLINE int +ACE_Process_Mutex::acquire_write (void) +{ + return this->lock_->acquire_write (); +} + +// Conditionally acquire a lock (i.e., won't block). +ACE_INLINE int +ACE_Process_Mutex::tryacquire_read (void) +{ + return this->lock_->tryacquire_read (); +} + +// Conditionally acquire a lock (i.e., won't block). +ACE_INLINE int +ACE_Process_Mutex::tryacquire_write (void) +{ + return this->lock_->tryacquire_write (); +} + +// Explicitly destroy the mutex. +ACE_INLINE int +ACE_RW_Process_Mutex::remove (void) +{ + return this->lock_.remove (); +} + +// Acquire lock ownership (wait on priority queue if necessary). +ACE_INLINE int +ACE_RW_Process_Mutex::acquire (void) +{ + return this->lock_.acquire (); +} + +// Conditionally acquire lock (i.e., don't wait on queue). +ACE_INLINE int +ACE_RW_Process_Mutex::tryacquire (void) +{ + return this->lock_.tryacquire (); +} + +// Release lock and unblock a thread at head of priority queue. +ACE_INLINE int +ACE_RW_Process_Mutex::release (void) +{ + return this->lock_.release (); +} + +// Acquire lock ownership (wait on priority queue if necessary). +ACE_INLINE int +ACE_RW_Process_Mutex::acquire_read (void) +{ + return this->lock_.acquire_read (); +} + +// Acquire lock ownership (wait on priority queue if necessary). +ACE_INLINE int +ACE_RW_Process_Mutex::acquire_write (void) +{ + return this->lock_.acquire_write (); +} + +// Conditionally acquire a lock (i.e., won't block). +ACE_INLINE int +ACE_RW_Process_Mutex::tryacquire_read (void) +{ + return this->lock_.tryacquire_read (); +} + +// Conditionally acquire a lock (i.e., won't block). +ACE_INLINE int +ACE_RW_Process_Mutex::tryacquire_write (void) +{ + return this->lock_.tryacquire_write (); +} + +ACE_INLINE const ACE_File_Lock & +ACE_RW_Process_Mutex::lock (void) const +{ +// ACE_TRACE ("ACE_RW_Process_Mutex::lock"); + return this->lock_; +} |