Class ThreadingDetector

java.lang.Object
net.minecraft.util.ThreadingDetector

public class ThreadingDetector extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • name

      private final String name
    • lock

      private final Semaphore lock
    • stackTraceLock

      private final Lock stackTraceLock
    • threadThatFailedToAcquire

      @Nullable private volatile Thread threadThatFailedToAcquire
    • fullException

      @Nullable private volatile ReportedException fullException
  • Constructor Details

    • ThreadingDetector

      public ThreadingDetector(String p_199415_)
  • Method Details

    • checkAndLock

      public void checkAndLock()
    • checkAndUnlock

      public void checkAndUnlock()
    • makeThreadingException

      public static ReportedException makeThreadingException(String p_199418_, @Nullable Thread p_199419_)
    • stackTrace

      private static String stackTrace(Thread p_199421_)