integrated main branch

This commit is contained in:
Guenter Obiltschnig
2006-10-12 17:26:04 +00:00
parent 89111b52b3
commit 7d8fd11991

View File

@@ -1,7 +1,7 @@
// //
// ThreadPool.cpp // ThreadPool.cpp
// //
// $Id: //poco/1.2/Foundation/src/ThreadPool.cpp#2 $ // $Id: //poco/1.2/Foundation/src/ThreadPool.cpp#3 $
// //
// Library: Foundation // Library: Foundation
// Package: Threading // Package: Threading
@@ -381,6 +381,7 @@ void ThreadPool::collect()
void ThreadPool::housekeep() void ThreadPool::housekeep()
{ {
_age = 0;
if (_threads.size() <= _minCapacity) if (_threads.size() <= _minCapacity)
return; return;
@@ -416,7 +417,6 @@ void ThreadPool::housekeep()
else (*it)->release(); else (*it)->release();
} }
_threads.insert(_threads.end(), activeThreads.begin(), activeThreads.end()); _threads.insert(_threads.end(), activeThreads.begin(), activeThreads.end());
_age = 0;
} }