summaryrefslogtreecommitdiff
path: root/ace/Synch.i
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-01-14 06:30:06 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-01-14 06:30:06 +0000
commit6c2d206d92e1a65206097b8b1ceb5ee2b26c614e (patch)
tree33bd534b39f1e5bf30c4f56bf7f08e17dd5329ad /ace/Synch.i
parent150dd3b206f682eab457909da327025f08e46e3a (diff)
downloadATCD-6c2d206d92e1a65206097b8b1ceb5ee2b26c614e.tar.gz
foo
Diffstat (limited to 'ace/Synch.i')
-rw-r--r--ace/Synch.i16
1 files changed, 16 insertions, 0 deletions
diff --git a/ace/Synch.i b/ace/Synch.i
index 2da2feba59a..7e95e4afb98 100644
--- a/ace/Synch.i
+++ b/ace/Synch.i
@@ -275,6 +275,22 @@ ACE_Semaphore::tryacquire_write (void)
return this->tryacquire ();
}
+#if defined (ACE_WIN32) || defined (ACE_HAS_POSIX_SEM)
+ACE_INLINE const ACE_mutex_t &
+ACE_Process_Mutex::lock (void) const
+{
+// ACE_TRACE ("ACE_Process_Mutex::lock");
+ return this->lock_.lock ();
+}
+
+ACE_INLINE const ACE_sema_t &
+ACE_Process_Semaphore::lock (void) const
+{
+// ACE_TRACE ("ACE_Process_Semaphore::lock");
+ return this->lock_.lock ();
+}
+#endif /* ACE_WIN32 */
+
// Acquire semaphore ownership. This calls <acquire> and is only here
// to make the <ACE_Process_Semaphore> interface consistent with the
// other synchronization APIs.