Mercurial > hg > orthanc-stone
diff 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 |
line wrap: on
line diff
--- a/Platforms/Generic/Oracle.cpp Fri May 26 13:42:50 2017 +0200 +++ b/Platforms/Generic/Oracle.cpp Fri May 26 15:31:58 2017 +0200 @@ -98,6 +98,11 @@ } } + Orthanc::SharedMessageQueue& GetQueue() + { + return queue_; + } + void Submit(IOracleCommand* command) { std::auto_ptr<IOracleCommand> protection(command); @@ -202,4 +207,10 @@ { pimpl_->Stop(); } + + + void Oracle::WaitEmpty() + { + pimpl_->GetQueue().WaitEmpty(50); + } }