activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1421429 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/ThreadPoolExecutor.cpp
Date Thu, 13 Dec 2012 19:12:05 GMT
Author: tabish
Date: Thu Dec 13 19:12:04 2012
New Revision: 1421429

URL: http://svn.apache.org/viewvc?rev=1421429&view=rev
Log:
Eagerly release these resources if not needed. 

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

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/ThreadPoolExecutor.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/ThreadPoolExecutor.cpp?rev=1421429&r1=1421428&r2=1421429&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/ThreadPoolExecutor.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/ThreadPoolExecutor.cpp
Thu Dec 13 19:12:04 2012
@@ -1153,6 +1153,8 @@ namespace concurrent{
                 if (t == NULL || (rs >= SHUTDOWN && !(rs == SHUTDOWN &&
firstTask == NULL))) {
                     decrementWorkerCount();
                     tryTerminate();
+                    t.reset(NULL);
+                    w.reset(NULL);
                     mainLock.unlock();
                     return false;
                 }



Mime
View raw message