Package net.minecraft.util.concurrent
Class RecursiveEventLoop<R extends java.lang.Runnable>
- java.lang.Object
-
- net.minecraft.util.concurrent.ThreadTaskExecutor<R>
-
- net.minecraft.util.concurrent.RecursiveEventLoop<R>
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.util.concurrent.Executor
,ITaskExecutor<R>
- Direct Known Subclasses:
Minecraft
,MinecraftServer
public abstract class RecursiveEventLoop<R extends java.lang.Runnable> extends ThreadTaskExecutor<R>
-
-
Field Summary
Fields Modifier and Type Field Description private int
reentrantCount
-
Constructor Summary
Constructors Constructor Description RecursiveEventLoop(java.lang.String p_i50401_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRunTask(R p_213166_1_)
protected boolean
runningTask()
protected boolean
scheduleExecutables()
-
Methods inherited from class net.minecraft.util.concurrent.ThreadTaskExecutor
dropAllTasks, execute, executeBlocking, getPendingTasksCount, getRunningThread, isSameThread, managedBlock, name, pollTask, runAllTasks, shouldRun, submit, submit, submitAsync, tell, waitForTasks, wrapRunnable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.util.concurrent.ITaskExecutor
ask, askEither, close
-
-
-
-
Method Detail
-
scheduleExecutables
protected boolean scheduleExecutables()
- Overrides:
scheduleExecutables
in classThreadTaskExecutor<R extends java.lang.Runnable>
-
runningTask
protected boolean runningTask()
-
doRunTask
protected void doRunTask(R p_213166_1_)
- Overrides:
doRunTask
in classThreadTaskExecutor<R extends java.lang.Runnable>
-
-