diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-28 07:14:18 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-28 07:14:18 +0000 |
commit | ad66c757e62495734e28c3f3bbc33a9fd29217d3 (patch) | |
tree | b679cecc050588c642722e7dffd780ed81a442eb /ace/Synch.i | |
parent | d395a38d42932c86ebef82468f58c03b3529363e (diff) | |
download | ATCD-ad66c757e62495734e28c3f3bbc33a9fd29217d3.tar.gz |
yow
Diffstat (limited to 'ace/Synch.i')
-rw-r--r-- | ace/Synch.i | 9 |
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. |