diff Core/MultiThreading/ThreadedCommandProcessor.h @ 466:9da3596069b8

handling failed commands
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Jul 2013 12:11:45 +0200
parents 84966299c8f8
children 322c1b497036
line wrap: on
line diff
--- a/Core/MultiThreading/ThreadedCommandProcessor.h	Fri Jul 12 11:15:27 2013 +0200
+++ b/Core/MultiThreading/ThreadedCommandProcessor.h	Fri Jul 12 12:11:45 2013 +0200
@@ -46,6 +46,7 @@
     std::vector<boost::thread*>  threads_;
 
     boost::mutex mutex_;
+    bool success_;
     unsigned int remainingCommands_;
     boost::condition_variable processedCommand_;
 
@@ -59,6 +60,6 @@
     // This takes the ownership of the command
     void Post(ICommand* command);
 
-    void Join();
+    bool Join();
   };
 }