summaryrefslogtreecommitdiff
path: root/ACE/ace/Mutex.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Mutex.inl')
-rw-r--r--ACE/ace/Mutex.inl11
1 files changed, 11 insertions, 0 deletions
diff --git a/ACE/ace/Mutex.inl b/ACE/ace/Mutex.inl
index eb09217501d..97ebf851da5 100644
--- a/ACE/ace/Mutex.inl
+++ b/ACE/ace/Mutex.inl
@@ -51,6 +51,17 @@ ACE_Mutex::lock (void) const
return this->lock_;
}
+ACE_INLINE ACE_mutex_t &
+ACE_Mutex::lock (void)
+{
+// ACE_TRACE ("ACE_Mutex::lock");
+#if defined (ACE_HAS_PTHREADS) || defined(ACE_HAS_STHREADS)
+ if (this->process_lock_)
+ return *this->process_lock_;
+#endif /* ACE_HAS_PTHREADS || ACE_HAS_STHREADS */
+ return this->lock_;
+}
+
ACE_INLINE int
ACE_Mutex::tryacquire_write (void)
{