Author: tabish
Date: Fri Feb 8 21:51:32 2013
New Revision: 1444250
URL: http://svn.apache.org/r1444250
Log:
set size to zero when pool is drained.
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/AbstractQueuedSynchronizer.cpp
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/AbstractQueuedSynchronizer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/AbstractQueuedSynchronizer.cpp?rev=1444250&r1=1444249&r2=1444250&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/AbstractQueuedSynchronizer.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/concurrent/locks/AbstractQueuedSynchronizer.cpp
Fri Feb 8 21:51:32 2013
@@ -265,6 +265,8 @@ namespace {
delete node;
}
+ this->size = 0;
+
PlatformThread::unlockMutex(lock);
PlatformThread::destroyMutex(lock);
|