summaryrefslogtreecommitdiff
path: root/ace/Synch.i
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-03 21:24:28 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-03 21:24:28 +0000
commit8179f2f3423544399ae0828e46b041a361408ee6 (patch)
tree2374366c069625ce5d10675ce18520f7bef2b9d9 /ace/Synch.i
parent896c21173de4acc36def1cbc6789d761f12ccf07 (diff)
downloadATCD-8179f2f3423544399ae0828e46b041a361408ee6.tar.gz
Reset ACE_Process_Mutex::lock_ after remove the lock to prevent removing the same kernel object twice on NT.
Diffstat (limited to 'ace/Synch.i')
-rw-r--r--ace/Synch.i4
1 files changed, 3 insertions, 1 deletions
diff --git a/ace/Synch.i b/ace/Synch.i
index 88481078c57..a1a623fcaa2 100644
--- a/ace/Synch.i
+++ b/ace/Synch.i
@@ -604,7 +604,9 @@ ACE_Recursive_Thread_Mutex::get_nesting_level (void)
ACE_INLINE int
ACE_Process_Mutex::remove (void)
{
- return this->lock_->remove ();
+ int retv = this->lock_->remove ();
+ this->lock_ = 0;
+ return retv;
}
// Acquire lock ownership (wait on priority queue if necessary).