changeset 462:077a23f652a1

merge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jul 2013 15:09:26 +0200
parents 339067c6bdb1 (current diff) d665b8fc8560 (diff)
children 005aaeb63414
files
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Core/MultiThreading/ThreadedCommandProcessor.cpp	Wed Jul 10 15:09:05 2013 +0200
+++ b/Core/MultiThreading/ThreadedCommandProcessor.cpp	Wed Jul 10 15:09:26 2013 +0200
@@ -107,10 +107,9 @@
 
   void ThreadedCommandProcessor::Post(ICommand* command)
   {
-    queue_.Enqueue(command);
-
     {
       boost::mutex::scoped_lock lock(mutex_);
+      queue_.Enqueue(command);
       remainingCommands_++;
     }
   }