Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
5128:ede035d48b8e | 5130:f2dcdbe05884 |
---|---|
49 class OrthancConfiguration : public boost::noncopyable | 49 class OrthancConfiguration : public boost::noncopyable |
50 { | 50 { |
51 private: | 51 private: |
52 typedef std::map<std::string, RemoteModalityParameters> Modalities; | 52 typedef std::map<std::string, RemoteModalityParameters> Modalities; |
53 typedef std::map<std::string, WebServiceParameters> Peers; | 53 typedef std::map<std::string, WebServiceParameters> Peers; |
54 typedef std::map<std::string, unsigned int> JobsEngineThreadsCount; | |
54 | 55 |
55 boost::shared_mutex mutex_; | 56 boost::shared_mutex mutex_; |
56 Json::Value json_; | 57 Json::Value json_; |
57 boost::filesystem::path defaultDirectory_; | 58 boost::filesystem::path defaultDirectory_; |
58 std::string configurationAbsolutePath_; | 59 std::string configurationAbsolutePath_; |
59 FontRegistry fontRegistry_; | 60 FontRegistry fontRegistry_; |
60 const char* configurationFileArg_; | 61 const char* configurationFileArg_; |
61 Modalities modalities_; | 62 Modalities modalities_; |
62 Peers peers_; | 63 Peers peers_; |
64 JobsEngineThreadsCount jobsEngineThreadsCount_; | |
63 ServerIndex* serverIndex_; | 65 ServerIndex* serverIndex_; |
64 std::set<Warnings> disabledWarnings_; | 66 std::set<Warnings> disabledWarnings_; |
65 | 67 |
66 OrthancConfiguration() : | 68 OrthancConfiguration() : |
67 configurationFileArg_(NULL), | 69 configurationFileArg_(NULL), |
158 // "SetServerIndex()" must have been called | 160 // "SetServerIndex()" must have been called |
159 void LoadModalitiesAndPeers(); | 161 void LoadModalitiesAndPeers(); |
160 | 162 |
161 void LoadWarnings(); | 163 void LoadWarnings(); |
162 | 164 |
165 void LoadJobsEngineThreadsCount(); | |
166 | |
167 unsigned int GetJobsEngineWorkersThread(const std::string& jobType) const; | |
168 | |
163 void RegisterFont(ServerResources::FileResourceId resource); | 169 void RegisterFont(ServerResources::FileResourceId resource); |
164 | 170 |
165 bool LookupStringParameter(std::string& target, | 171 bool LookupStringParameter(std::string& target, |
166 const std::string& parameter) const; | 172 const std::string& parameter) const; |
167 | 173 |