Class GroupAssigningThreadFactory

java.lang.Object
net.minecraft.util.thread.GroupAssigningThreadFactory
All Implemented Interfaces:
ThreadFactory

public class GroupAssigningThreadFactory extends Object implements ThreadFactory
A custom thread factory that assigns each created thread to the group of the system security manager or the factory-creating thread (when the security manager does not exist). Otherwise, it behaves much like the thread creation logic in Util.createIoWorker(String, boolean).
Mappings:
Namespace Name
named net/minecraft/util/thread/GroupAssigningThreadFactory
intermediary net/minecraft/class_6014
official brz
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/util/thread/GroupAssigningThreadFactory;LOGGER:Lorg/slf4j/Logger;
      intermediary field_29936 Lnet/minecraft/class_6014;field_29936:Lorg/slf4j/Logger;
      official a Lbrz;a:Lorg/slf4j/Logger;
    • group

      private final ThreadGroup group
      Mappings:
      Namespace Name Mixin selector
      named group Lnet/minecraft/util/thread/GroupAssigningThreadFactory;group:Ljava/lang/ThreadGroup;
      intermediary field_29937 Lnet/minecraft/class_6014;field_29937:Ljava/lang/ThreadGroup;
      official b Lbrz;b:Ljava/lang/ThreadGroup;
    • nextIndex

      private final AtomicInteger nextIndex
      Mappings:
      Namespace Name Mixin selector
      named nextIndex Lnet/minecraft/util/thread/GroupAssigningThreadFactory;nextIndex:Ljava/util/concurrent/atomic/AtomicInteger;
      intermediary field_29938 Lnet/minecraft/class_6014;field_29938:Ljava/util/concurrent/atomic/AtomicInteger;
      official c Lbrz;c:Ljava/util/concurrent/atomic/AtomicInteger;
    • prefix

      private final String prefix
      Mappings:
      Namespace Name Mixin selector
      named prefix Lnet/minecraft/util/thread/GroupAssigningThreadFactory;prefix:Ljava/lang/String;
      intermediary field_29939 Lnet/minecraft/class_6014;field_29939:Ljava/lang/String;
      official d Lbrz;d:Ljava/lang/String;
  • Constructor Details

    • GroupAssigningThreadFactory

      public GroupAssigningThreadFactory(String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/thread/GroupAssigningThreadFactory;<init>(Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_6014;<init>(Ljava/lang/String;)V
      official <init> Lbrz;<init>(Ljava/lang/String;)V
  • Method Details

    • newThread

      public Thread newThread(Runnable r)
      Specified by:
      newThread in interface ThreadFactory
      Mappings:
      Namespace Name Mixin selector
      named newThread Lnet/minecraft/util/thread/GroupAssigningThreadFactory;newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
      intermediary newThread Lnet/minecraft/class_6014;newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
      official newThread Lbrz;newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;