changeset 461:d665b8fc8560

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Jul 2013 19:03:18 +0200
parents bb7ef0b076c8
children 077a23f652a1
files Core/MultiThreading/ThreadedCommandProcessor.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Core/MultiThreading/ThreadedCommandProcessor.cpp	Thu Jul 04 16:57:51 2013 +0200
+++ b/Core/MultiThreading/ThreadedCommandProcessor.cpp	Thu Jul 04 19:03:18 2013 +0200
@@ -107,10 +107,9 @@
 
   void ThreadedCommandProcessor::Post(ICommand* command)
   {
-    queue_.Enqueue(command);
-
     {
       boost::mutex::scoped_lock lock(mutex_);
+      queue_.Enqueue(command);
       remainingCommands_++;
     }
   }