changeset 5453:b750777c36a2

fix
author Alain Mazy <am@osimis.io>
date Wed, 06 Dec 2023 14:19:59 +0100
parents 8345267e8de5
children 099d45f49fe1 312e866e2550
files OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.cpp	Tue Dec 05 17:22:36 2023 +0100
+++ b/OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.cpp	Wed Dec 06 14:19:59 2023 +0100
@@ -243,8 +243,9 @@
 
   void ThreadedSetOfInstancesJob::InstanceWorkerThread(ThreadedSetOfInstancesJob* that)
   {
-    static uint8_t threadCounter = 0;
+    static uint16_t threadCounter = 0;
     Logging::SetCurrentThreadName(std::string("JOB-INS-WORK-") + boost::lexical_cast<std::string>(threadCounter++));
+    threadCounter %= 1000;
 
     while (true)
     {