comparison OrthancFramework/Sources/SystemToolbox.cpp @ 4203:4d42408da117

improving const-correctness in ParsedDicomFile
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Sep 2020 15:01:31 +0200
parents a2f1c97002fe
children 3d6f14a05db1
comparison
equal deleted inserted replaced
4202:2007ab69ac16 4203:4d42408da117
635 { 635 {
636 // Get the number of available hardware threads (e.g. number of 636 // Get the number of available hardware threads (e.g. number of
637 // CPUs or cores or hyperthreading units) 637 // CPUs or cores or hyperthreading units)
638 unsigned int threads = boost::thread::hardware_concurrency(); 638 unsigned int threads = boost::thread::hardware_concurrency();
639 639
640 if (threads <= 0) 640 if (threads == 0)
641 { 641 {
642 return 1; 642 return 1;
643 } 643 }
644 else 644 else
645 { 645 {