Mercurial > hg > orthanc
diff OrthancServer/ServerContext.h @ 2815:925d8dc03a23
unserialization of jobs from plugins
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 Sep 2018 16:34:21 +0200 |
parents | 3a55b77339ff |
children | ae8e72009e64 |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.h Fri Sep 07 10:09:17 2018 +0200 +++ b/OrthancServer/ServerContext.h Tue Sep 11 16:34:21 2018 +0200 @@ -143,9 +143,6 @@ void ReadDicomAsJsonInternal(std::string& result, const std::string& instancePublicId); - void SetupJobsEngine(bool unitTesting, - bool loadJobsFromDatabase); - void SaveJobsEngine(); virtual void SignalJobSubmitted(const std::string& jobId); @@ -178,6 +175,7 @@ bool done_; bool haveJobsChanged_; + bool isJobsEngineUnserialized_; SharedMessageQueue pendingChanges_; boost::thread changeThread_; boost::thread saveJobsThread_; @@ -208,11 +206,13 @@ ServerContext(IDatabaseWrapper& database, IStorageArea& area, - bool unitTesting, - bool loadJobsFromDatabase); + bool unitTesting); ~ServerContext(); + void SetupJobsEngine(bool unitTesting, + bool loadJobsFromDatabase); + ServerIndex& GetIndex() { return index_;