feat: имена потоков

- добавлены имена для потоков CallbackHelper
This commit is contained in:
Reider745
2023-12-19 07:10:48 +03:00
parent 48ec25ea05
commit 4a1a042d04
@@ -59,6 +59,7 @@ public class CallbackHelper {
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 class CallbackHelper {
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()) {
}