diff Core/MultiThreading/BagOfTasksProcessor.h @ 1923:6ac7f31fc543

fix freeze if empty bag of tasks
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 07 Mar 2016 08:29:22 +0100
parents b97aa579e85b
children 5b818f677dd6
line wrap: on
line diff
--- a/Core/MultiThreading/BagOfTasksProcessor.h	Fri Mar 04 17:53:19 2016 +0100
+++ b/Core/MultiThreading/BagOfTasksProcessor.h	Mon Mar 07 08:29:22 2016 +0100
@@ -109,10 +109,11 @@
       bool                  status_;
  
       Handle(BagOfTasksProcessor&  that,
-             uint64_t bag) : 
+             uint64_t bag,
+             bool empty) : 
         that_(that),
         bag_(bag),
-        hasJoined_(false)
+        hasJoined_(empty)
       {
       }