diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-11-04 18:44:15 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-11-04 19:38:28 +0000 |
commit | 6f46cf4fe112bc2aec29a8975ef10861853716b6 (patch) | |
tree | 3582ecd5d3edc8b5368eeb2589c5d7403138169d /comphelper | |
parent | 695d29e17feefb33ff54e7263ba2d322e665d176 (diff) |
thread-pool: Initialize empty pools to start complete.
Otherwise waiting for completion if we push no work hangs.
Change-Id: I7103bdb779eb66a65cd8496091e72a0c65eb3567
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/threadpool.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/threadpool.cxx b/comphelper/source/misc/threadpool.cxx index 3717ffbd006c..77e9962c6e9c 100644 --- a/comphelper/source/misc/threadpool.cxx +++ b/comphelper/source/misc/threadpool.cxx @@ -99,7 +99,7 @@ ThreadPool::ThreadPool( sal_Int32 nWorkers ) : for( sal_Int32 i = 0; i < nWorkers; i++ ) maWorkers.push_back( new ThreadWorker( this ) ); - maTasksComplete.reset(); + maTasksComplete.set(); osl::MutexGuard aGuard( maGuard ); for( size_t i = 0; i < maWorkers.size(); i++ ) |