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 2008/10/19 17:39:51 UTC
svn commit: r706034 -
/activemq/activemq-cpp/branches/pools-revamp/src/main/decaf/util/concurrent/Mutex.cpp
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 );
}
////////////////////////////////////////////////////////////////////////////////