diff OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.h @ 5137:15109c3f0f7d

added sanity checks in DicomModificationJob + automatically reconstruct resources at the end of a DicomModificationJob
author Alain Mazy <am@osimis.io>
date Wed, 18 Jan 2023 17:58:51 +0100
parents e71b22a43c0b
children df040c83796c
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.h	Tue Jan 17 17:54:38 2023 +0100
+++ b/OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.h	Wed Jan 18 17:58:51 2023 +0100
@@ -52,8 +52,6 @@
     std::set<std::string>               failedInstances_;     // the list of source instances ids that failed processing
     std::set<std::string>               processedInstances_;  // the list of source instances ids that have been processed (including failed ones)
 
-    std::set<std::string>               parentResources_;
-    
     SharedMessageQueue                  instancesToProcessQueue_;
     std::vector<boost::shared_ptr<boost::thread> >         instancesWorkers_;
 
@@ -68,8 +66,10 @@
     ServerContext&          context_;
     bool                    keepSource_;
     ErrorCode               errorCode_;
+  
   protected:
-    mutable boost::recursive_mutex mutex_;
+    mutable boost::recursive_mutex      mutex_;
+    std::set<std::string>               parentResources_;
 
   public:
     ThreadedSetOfInstancesJob(ServerContext& context,
@@ -117,6 +117,8 @@
 
     void SetKeepSource(bool keep);
 
+    bool IsKeepSource() const;
+
     void GetInstances(std::set<std::string>& target) const;
 
     void GetFailedInstances(std::set<std::string>& target) const;