Mercurial > hg > orthanc-stone
comparison Framework/Loaders/GenericLoadersContext.cpp @ 1242:b9b5d4378874 broker
working of WebAssemblyOracle
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jan 2020 18:08:05 +0100 |
parents | c471a0aa137b |
children | af35ec39ebec |
comparison
equal
deleted
inserted
replaced
1241:a4bb8c2dd211 | 1242:b9b5d4378874 |
---|---|
169 | 169 |
170 void GenericLoadersContext::GetStatistics(uint64_t& scheduledCommands, | 170 void GenericLoadersContext::GetStatistics(uint64_t& scheduledCommands, |
171 uint64_t& processedCommands) | 171 uint64_t& processedCommands) |
172 { | 172 { |
173 boost::recursive_mutex::scoped_lock lock(mutex_); | 173 boost::recursive_mutex::scoped_lock lock(mutex_); |
174 | |
174 if (scheduler_) | 175 if (scheduler_) |
175 { | 176 { |
176 scheduledCommands = scheduler_->GetTotalScheduled(); | 177 scheduledCommands = scheduler_->GetTotalScheduled(); |
177 processedCommands = scheduler_->GetTotalProcessed(); | 178 processedCommands = scheduler_->GetTotalProcessed(); |
178 } | 179 } |
179 else | 180 else |
180 { | 181 { |
181 scheduledCommands = 0; | 182 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); |
182 processedCommands = 0; | |
183 } | 183 } |
184 } | 184 } |
185 } | 185 } |