mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
integrated main branch
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user