You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/07/24 13:44:53 UTC

svn commit: r559012 - /activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/concurrent/Mutex.cpp

Author: tabish
Date: Tue Jul 24 04:44:53 2007
New Revision: 559012

URL: http://svn.apache.org/viewvc?view=rev&rev=559012
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Modified:
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/concurrent/Mutex.cpp

Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/concurrent/Mutex.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/concurrent/Mutex.cpp?view=diff&rev=559012&r1=559011&r2=559012
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/concurrent/Mutex.cpp (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/concurrent/Mutex.cpp Tue Jul 24 04:44:53 2007
@@ -99,8 +99,10 @@
     // someone else to lock on potentially.  When we come back and
     // re-lock we want to restore to the state we were in before.
     unsigned long lock_owner = this->lock_owner;
+    unsigned long lock_count = this->lock_count;
 
     this->lock_owner = 0;
+    this->lock_count = 0;
 
     // Create this threads wait event
     apr_thread_cond_t* waitEvent = NULL;
@@ -126,6 +128,7 @@
 
     // restore the owner
     this->lock_owner = lock_owner;
+    this->lock_count = lock_count;
 }
 
 ////////////////////////////////////////////////////////////////////////////////