Kaydet (Commit) 6f46cf4f authored tarafından Matúš Kukan's avatar Matúš Kukan Kaydeden (comit) Michael Meeks

thread-pool: Initialize empty pools to start complete.

Otherwise waiting for completion if we push no work hangs.

Change-Id: I7103bdb779eb66a65cd8496091e72a0c65eb3567
üst 695d29e1
......@@ -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++ )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment