comparison Core/MultiThreading/BagOfTasksProcessor.cpp @ 2016:0ae26237569a

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 13 Jun 2016 15:26:20 +0200
parents 6ac7f31fc543
children 5b818f677dd6
comparison
equal deleted inserted replaced
2015:bcc575732aef 2016:0ae26237569a
196 196
197 BagOfTasksProcessor::BagOfTasksProcessor(size_t countThreads) : 197 BagOfTasksProcessor::BagOfTasksProcessor(size_t countThreads) :
198 countBags_(0), 198 countBags_(0),
199 continue_(true) 199 continue_(true)
200 { 200 {
201 if (countThreads <= 0) 201 if (countThreads == 0)
202 { 202 {
203 throw OrthancException(ErrorCode_ParameterOutOfRange); 203 throw OrthancException(ErrorCode_ParameterOutOfRange);
204 } 204 }
205 205
206 threads_.resize(countThreads); 206 threads_.resize(countThreads);