comphelper/source/misc/threadpool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6f46cf4fe112bc2aec29a8975ef10861853716b6 Author: Matúš Kukan <matus.ku...@collabora.com> Date: Tue Nov 4 18:44:15 2014 +0000 thread-pool: Initialize empty pools to start complete. Otherwise waiting for completion if we push no work hangs. Change-Id: I7103bdb779eb66a65cd8496091e72a0c65eb3567 diff --git a/comphelper/source/misc/threadpool.cxx b/comphelper/source/misc/threadpool.cxx index 3717ffb..77e9962 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++ )
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits