comparison OrthancServer/Sources/OrthancRestApi/OrthancRestApi.h @ 5130:f2dcdbe05884

ResourceModification jobs can now use multiple threads
author Alain Mazy <am@osimis.io>
date Thu, 05 Jan 2023 17:24:43 +0100
parents 8422e4f99a18
children 0ea402b4d901
comparison
equal deleted inserted replaced
5128:ede035d48b8e 5130:f2dcdbe05884
24 24
25 #include "../../../OrthancFramework/Sources/DicomParsing/DicomModification.h" 25 #include "../../../OrthancFramework/Sources/DicomParsing/DicomModification.h"
26 #include "../../../OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.h" 26 #include "../../../OrthancFramework/Sources/JobsEngine/SetOfCommandsJob.h"
27 #include "../../../OrthancFramework/Sources/MetricsRegistry.h" 27 #include "../../../OrthancFramework/Sources/MetricsRegistry.h"
28 #include "../../../OrthancFramework/Sources/RestApi/RestApi.h" 28 #include "../../../OrthancFramework/Sources/RestApi/RestApi.h"
29 #include "../ServerJobs/ThreadedSetOfInstancesJob.h"
29 #include "../ServerEnumerations.h" 30 #include "../ServerEnumerations.h"
30 31
31 #include <set> 32 #include <set>
32 33
33 namespace Orthanc 34 namespace Orthanc
128 void SubmitCommandsJob(RestApiPostCall& call, 129 void SubmitCommandsJob(RestApiPostCall& call,
129 SetOfCommandsJob* job, 130 SetOfCommandsJob* job,
130 bool isDefaultSynchronous, 131 bool isDefaultSynchronous,
131 const Json::Value& body) const; 132 const Json::Value& body) const;
132 133
134 void SubmitThreadedInstancesJob(RestApiPostCall& call,
135 ThreadedSetOfInstancesJob* job,
136 bool isDefaultSynchronous,
137 const Json::Value& body) const;
138
139
133 static void DocumentSubmitGenericJob(RestApiPostCall& call); 140 static void DocumentSubmitGenericJob(RestApiPostCall& call);
134 141
135 static void DocumentSubmitCommandsJob(RestApiPostCall& call); 142 static void DocumentSubmitCommandsJob(RestApiPostCall& call);
136 143
137 static DicomToJsonFormat GetDicomFormat(const RestApiGetCall& call, 144 static DicomToJsonFormat GetDicomFormat(const RestApiGetCall& call,