Mercurial > hg > orthanc
diff Core/JobsEngine/IJob.h @ 2812:ea7aea6f6a95
improved naming of methods in IJob
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 Sep 2018 16:23:40 +0200 |
parents | 7cfc8d266f41 |
children | cb5d75143da0 |
line wrap: on
line diff
--- a/Core/JobsEngine/IJob.h Thu Sep 06 12:32:02 2018 +0200 +++ b/Core/JobsEngine/IJob.h Thu Sep 06 16:23:40 2018 +0200 @@ -50,13 +50,13 @@ // Method called once the job enters the jobs engine virtual void Start() = 0; - virtual JobStepResult ExecuteStep() = 0; + virtual JobStepResult Step() = 0; // Method called once the job is resubmitted after a failure - virtual void SignalResubmit() = 0; + virtual void Reset() = 0; - // For pausing/canceling jobs - virtual void ReleaseResources(JobReleaseReason reason) = 0; + // For pausing/canceling/ending jobs: This method must release allocated resources + virtual void Stop(JobStopReason reason) = 0; virtual float GetProgress() = 0;