Mercurial > hg > orthanc
comparison OrthancServer/Scheduler/ServerScheduler.cpp @ 2063:ed383e7a6753
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Jul 2016 15:50:11 +0200 |
parents | b1291df2f780 |
children | 29689b30f9ae |
comparison
equal
deleted
inserted
replaced
2062:40ffd0e8676a | 2063:ed383e7a6753 |
---|---|
190 } | 190 } |
191 | 191 |
192 | 192 |
193 ServerScheduler::ServerScheduler(unsigned int maxJobs) : availableJob_(maxJobs) | 193 ServerScheduler::ServerScheduler(unsigned int maxJobs) : availableJob_(maxJobs) |
194 { | 194 { |
195 if (maxJobs == 0) | |
196 { | |
197 throw OrthancException(ErrorCode_ParameterOutOfRange); | |
198 } | |
199 | |
195 finish_ = false; | 200 finish_ = false; |
196 worker_ = boost::thread(Worker, this); | 201 worker_ = boost::thread(Worker, this); |
197 } | 202 } |
198 | 203 |
199 | 204 |