From 4a1a042d04bc9e1c1ebd88c4f6d45523be1b32bc Mon Sep 17 00:00:00 2001 From: Reider745 <70357814+Reider745@users.noreply.github.com> Date: Tue, 19 Dec 2023 07:10:48 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=D1=82=D0=BE=D0=BA=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - добавлены имена для потоков CallbackHelper --- src/main/java/com/reider745/api/CallbackHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/reider745/api/CallbackHelper.java b/src/main/java/com/reider745/api/CallbackHelper.java index ce9b2d61c..593164a32 100644 --- a/src/main/java/com/reider745/api/CallbackHelper.java +++ b/src/main/java/com/reider745/api/CallbackHelper.java @@ -59,6 +59,7 @@ public void run() { public static void registerCallback(Type type) { ThreadRegion threadRegion = new ThreadRegion(); + threadRegion.setName(type.name()); threadRegion.start(); types.put(type, threadRegion); @@ -130,6 +131,7 @@ public static void applyRegion(Type type, Level level, ICallbackApply apply) { public static void apply(Event event, ICallbackApply apply, boolean isPrevented) { Thread thread = new ThreadCallbackEvent(event, apply, isPrevented); + thread.setName(event.getEventName()); thread.start(); while (thread.isAlive()) { }