Mercurial > hg > orthanc-stone
comparison Framework/Oracle/ThreadedOracle.cpp @ 1097:4383382db01d broker
deprecating LockingEmitter
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 24 Oct 2019 22:31:18 +0200 |
parents | d7a18a3cd6f9 |
children | 17660df24c36 |
comparison
equal
deleted
inserted
replaced
1096:97cbb2c31a65 | 1097:4383382db01d |
---|---|
253 } | 253 } |
254 | 254 |
255 delete workers_[i]; | 255 delete workers_[i]; |
256 } | 256 } |
257 } | 257 } |
258 | |
259 queue_.Clear(); | |
258 } | 260 } |
259 | 261 |
260 | 262 |
261 ThreadedOracle::ThreadedOracle(IMessageEmitter& emitter) : | 263 ThreadedOracle::ThreadedOracle(IMessageEmitter& emitter) : |
262 emitter_(emitter), | 264 emitter_(emitter), |
285 LOG(ERROR) << "Exception while stopping the threaded oracle: " << e.What(); | 287 LOG(ERROR) << "Exception while stopping the threaded oracle: " << e.What(); |
286 } | 288 } |
287 catch (...) | 289 catch (...) |
288 { | 290 { |
289 LOG(ERROR) << "Native exception while stopping the threaded oracle"; | 291 LOG(ERROR) << "Native exception while stopping the threaded oracle"; |
290 } | 292 } |
291 } | 293 } |
292 | 294 |
293 | 295 |
294 void ThreadedOracle::SetOrthancParameters(const Orthanc::WebServiceParameters& orthanc) | 296 void ThreadedOracle::SetOrthancParameters(const Orthanc::WebServiceParameters& orthanc) |
295 { | 297 { |