Mercurial > hg > orthanc
diff OrthancServer/ServerContext.cpp @ 995:8c67382f44a7 lua-scripting
limit number of jobs in the scheduler
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 03 Jul 2014 15:58:53 +0200 |
parents | b3f6fb1130cd |
children | cf52f3bcb2b3 |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp Wed Jul 02 14:42:49 2014 +0200 +++ b/OrthancServer/ServerContext.cpp Thu Jul 03 15:58:53 2014 +0200 @@ -67,7 +67,8 @@ accessor_(storage_), compressionEnabled_(false), provider_(*this), - dicomCache_(provider_, DICOM_CACHE_SIZE) + dicomCache_(provider_, DICOM_CACHE_SIZE), + scheduler_(Configuration::GetGlobalIntegerParameter("LimitJobs", 10)) { scu_.SetLocalApplicationEntityTitle(Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC")); //scu_.SetMillisecondsBeforeClose(1); // The connection is always released