Mercurial > hg > orthanc
comparison Core/MultiThreading/ThreadedCommandProcessor.cpp @ 461:d665b8fc8560
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Jul 2013 19:03:18 +0200 |
parents | 84966299c8f8 |
children | 9da3596069b8 |
comparison
equal
deleted
inserted
replaced
459:bb7ef0b076c8 | 461:d665b8fc8560 |
---|---|
105 } | 105 } |
106 | 106 |
107 | 107 |
108 void ThreadedCommandProcessor::Post(ICommand* command) | 108 void ThreadedCommandProcessor::Post(ICommand* command) |
109 { | 109 { |
110 queue_.Enqueue(command); | |
111 | |
112 { | 110 { |
113 boost::mutex::scoped_lock lock(mutex_); | 111 boost::mutex::scoped_lock lock(mutex_); |
112 queue_.Enqueue(command); | |
114 remainingCommands_++; | 113 remainingCommands_++; |
115 } | 114 } |
116 } | 115 } |
117 | 116 |
118 | 117 |