poco icon indicating copy to clipboard operation
poco copied to clipboard

TaskManager waits for all threads in the ThreadPool

Open aleks-f opened this issue 2 years ago • 0 comments

TaskManager uses either the global or user-supplied external ThreadPool. TaskManager::joinAll() calls the ThreadPool::joinAll(), which means it will have to wait for all threads, including the ones not running the managed tasks, to complete execution. https://github.com/pocoproject/poco/blob/92fac970d4b6161fd58335bfe1492689ba5a80a3/Foundation/src/TaskManager.cpp#L77-L80

aleks-f avatar Jul 21 '22 06:07 aleks-f