[Libreoffice-commits] core.git: comphelper/source

Matúš Kukan matus.kukan at collabora.com
Tue Nov 4 11:37:43 PST 2014


 comphelper/source/misc/threadpool.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6f46cf4fe112bc2aec29a8975ef10861853716b6
Author: Matúš Kukan <matus.kukan at 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++ )


More information about the Libreoffice-commits mailing list