activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r706034 - /activemq/activemq-cpp/branches/pools-revamp/src/main/decaf/util/concurrent/Mutex.cpp
Date Sun, 19 Oct 2008 15:39:51 GMT
Author: tabish
Date: Sun Oct 19 08:39:51 2008
New Revision: 706034

URL: http://svn.apache.org/viewvc?rev=706034&view=rev
Log:
Attempt to resolve pool issues on CentOS and REHL

Modified:
    activemq/activemq-cpp/branches/pools-revamp/src/main/decaf/util/concurrent/Mutex.cpp

Modified: activemq/activemq-cpp/branches/pools-revamp/src/main/decaf/util/concurrent/Mutex.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/pools-revamp/src/main/decaf/util/concurrent/Mutex.cpp?rev=706034&r1=706033&r2=706034&view=diff
==============================================================================
--- activemq/activemq-cpp/branches/pools-revamp/src/main/decaf/util/concurrent/Mutex.cpp (original)
+++ activemq/activemq-cpp/branches/pools-revamp/src/main/decaf/util/concurrent/Mutex.cpp Sun
Oct 19 08:39:51 2008
@@ -36,10 +36,9 @@
 ////////////////////////////////////////////////////////////////////////////////
 Mutex::~Mutex() {
 
-    // Unlock the mutex.
+    // Unlock the mutex, the destruction of the AprPool will take care
+    // of cleaning up the apr_thread_mutex_t allocated in the ctor.
     unlock();
-
-    apr_thread_mutex_destroy( mutex );
 }
 
 ////////////////////////////////////////////////////////////////////////////////



Mime
View raw message