diff OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.h @ 5134:6aa41d86b948

fix ModificationJob state machine
author Alain Mazy <am@osimis.io>
date Tue, 10 Jan 2023 11:46:00 +0100
parents f2dcdbe05884
children e71b22a43c0b
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.h	Fri Jan 06 12:28:36 2023 +0100
+++ b/OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.h	Tue Jan 10 11:46:00 2023 +0100
@@ -41,7 +41,6 @@
   public:
     enum ThreadedJobStep  // cannot use "Step" since there is a method with this name !
     {
-      ThreadedJobStep_BeforeStart,
       ThreadedJobStep_ProcessingInstances,
       ThreadedJobStep_PostProcessingInstances,
       ThreadedJobStep_Cleanup,
@@ -67,6 +66,7 @@
 
     ServerContext&          context_;
     bool                    keepSource_;
+    ErrorCode               errorCode_;
   protected:
     mutable boost::recursive_mutex mutex_;
 
@@ -102,6 +102,10 @@
 
     bool HasCleanupStep() const;
 
+    void SetErrorCode(ErrorCode errorCode);
+
+    ErrorCode GetErrorCode() const;
+
   public:
 
     ThreadedJobStep GetCurrentStep() const;