From 1c9ef1ea16ff391d06e2f52fb81e9613c8c2dad2 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Tue, 4 Nov 2025 11:10:08 +1000 Subject: [PATCH] Set dedicated thread name --- .../me/cortex/voxy/common/thread/UnifiedServiceThreadPool.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/cortex/voxy/common/thread/UnifiedServiceThreadPool.java b/src/main/java/me/cortex/voxy/common/thread/UnifiedServiceThreadPool.java index e14329a0..423d5f25 100644 --- a/src/main/java/me/cortex/voxy/common/thread/UnifiedServiceThreadPool.java +++ b/src/main/java/me/cortex/voxy/common/thread/UnifiedServiceThreadPool.java @@ -14,6 +14,7 @@ public class UnifiedServiceThreadPool { private final MultiThreadPrioritySemaphore.Block selfBlock; private final ThreadGroup dedicatedPool; private final List threads = new ArrayList<>(); + private int threadId = 0; public UnifiedServiceThreadPool() { this.dedicatedPool = new ThreadGroup("Voxy Dedicated Service"); @@ -33,7 +34,7 @@ public class UnifiedServiceThreadPool { this.selfBlock.release(-diff); } else {//Add threads for (int i = 0; i < diff; i++) { - var t = new Thread(this.dedicatedPool, this::workerThread); + var t = new Thread(this.dedicatedPool, this::workerThread, "Dedicated Voxy Worker #"+(this.threadId++)); t.setPriority(3); t.setDaemon(true); this.threads.add(t);