# HG changeset patch # User Alain Mazy # Date 1701868799 -3600 # Node ID b750777c36a2f5a2f32a8db88352ebd646a42cfd # Parent 8345267e8de5e3b073ce8ecf8ae50a7809001557 fix diff -r 8345267e8de5 -r b750777c36a2 OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.cpp --- 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(threadCounter++)); + threadCounter %= 1000; while (true) {