Mercurial > hg > orthanc-stone
comparison Platforms/Generic/Oracle.cpp @ 87:4a541cd4fa83 wasm
OrthancVolumeImageLoader
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 May 2017 15:31:58 +0200 |
parents | 02c3a7a4938f |
children | f244018a4e4b |
comparison
equal
deleted
inserted
replaced
86:02c3a7a4938f | 87:4a541cd4fa83 |
---|---|
96 LOG(ERROR) << "You should have manually called Oracle::Stop()"; | 96 LOG(ERROR) << "You should have manually called Oracle::Stop()"; |
97 Stop(); | 97 Stop(); |
98 } | 98 } |
99 } | 99 } |
100 | 100 |
101 Orthanc::SharedMessageQueue& GetQueue() | |
102 { | |
103 return queue_; | |
104 } | |
105 | |
101 void Submit(IOracleCommand* command) | 106 void Submit(IOracleCommand* command) |
102 { | 107 { |
103 std::auto_ptr<IOracleCommand> protection(command); | 108 std::auto_ptr<IOracleCommand> protection(command); |
104 | 109 |
105 if (command == NULL) | 110 if (command == NULL) |
200 | 205 |
201 void Oracle::Stop() | 206 void Oracle::Stop() |
202 { | 207 { |
203 pimpl_->Stop(); | 208 pimpl_->Stop(); |
204 } | 209 } |
210 | |
211 | |
212 void Oracle::WaitEmpty() | |
213 { | |
214 pimpl_->GetQueue().WaitEmpty(50); | |
215 } | |
205 } | 216 } |