Mercurial > hg > orthanc
diff OrthancServer/ServerContext.h @ 2673:8e0bc055d18c jobs
JobsRegistry::IObserver
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 11 Jun 2018 16:29:33 +0200 |
parents | 3efc44fac209 |
children | 3a55b77339ff |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.h Mon Jun 11 15:57:25 2018 +0200 +++ b/OrthancServer/ServerContext.h Mon Jun 11 16:29:33 2018 +0200 @@ -60,7 +60,7 @@ * filesystem (including compression), as well as the index of the * DICOM store. It implements the required locking mechanisms. **/ - class ServerContext + class ServerContext : private JobsRegistry::IObserver { private: class DicomCacheProvider : public ICachePageProvider @@ -118,6 +118,12 @@ void SaveJobsEngine(); + virtual void SignalJobSubmitted(const std::string& jobId); + + virtual void SignalJobSuccess(const std::string& jobId); + + virtual void SignalJobFailure(const std::string& jobId); + ServerIndex index_; IStorageArea& area_; @@ -139,6 +145,7 @@ boost::recursive_mutex listenersMutex_; bool done_; + bool haveJobsChanged_; SharedMessageQueue pendingChanges_; boost::thread changeThread_; boost::thread saveJobsThread_;