activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r559012 - /activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/concurrent/Mutex.cpp
Date Tue, 24 Jul 2007 11:44:53 GMT
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;
 }
 
 ////////////////////////////////////////////////////////////////////////////////



Mime
View raw message