summaryrefslogtreecommitdiff
path: root/ace/Synch.i
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-28 07:14:18 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-28 07:14:18 +0000
commitad66c757e62495734e28c3f3bbc33a9fd29217d3 (patch)
treeb679cecc050588c642722e7dffd780ed81a442eb /ace/Synch.i
parentd395a38d42932c86ebef82468f58c03b3529363e (diff)
downloadATCD-ad66c757e62495734e28c3f3bbc33a9fd29217d3.tar.gz
yow
Diffstat (limited to 'ace/Synch.i')
-rw-r--r--ace/Synch.i9
1 files changed, 7 insertions, 2 deletions
diff --git a/ace/Synch.i b/ace/Synch.i
index 461fbbe32b2..03f72d67af2 100644
--- a/ace/Synch.i
+++ b/ace/Synch.i
@@ -289,8 +289,13 @@ ACE_INLINE int
ACE_Thread_Mutex_Guard::release (void)
{
// ACE_TRACE ("ACE_Thread_Mutex_Guard::release");
- this->owner_ = -1;
- return this->lock_.release ();
+ if (this->owner_ != -1)
+ {
+ this->owner_ = -1;
+ return this->lock_.release ();
+ }
+ else
+ return 0;
}
// Explicitly release the lock.