Mercurial > hg > orthanc
diff OrthancServer/Sources/OrthancConfiguration.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 | 877bc3b96476 |
children | 0ea402b4d901 |
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancConfiguration.h Mon Dec 19 20:00:21 2022 +0100 +++ b/OrthancServer/Sources/OrthancConfiguration.h Thu Jan 05 17:24:43 2023 +0100 @@ -51,6 +51,7 @@ private: typedef std::map<std::string, RemoteModalityParameters> Modalities; typedef std::map<std::string, WebServiceParameters> Peers; + typedef std::map<std::string, unsigned int> JobsEngineThreadsCount; boost::shared_mutex mutex_; Json::Value json_; @@ -60,6 +61,7 @@ const char* configurationFileArg_; Modalities modalities_; Peers peers_; + JobsEngineThreadsCount jobsEngineThreadsCount_; ServerIndex* serverIndex_; std::set<Warnings> disabledWarnings_; @@ -160,6 +162,10 @@ void LoadWarnings(); + void LoadJobsEngineThreadsCount(); + + unsigned int GetJobsEngineWorkersThread(const std::string& jobType) const; + void RegisterFont(ServerResources::FileResourceId resource); bool LookupStringParameter(std::string& target,