Package net.minecraft.util.thread
Class ReentrantBlockableEventLoop<R extends Runnable>
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<R>
net.minecraft.util.thread.ReentrantBlockableEventLoop<R>
- All Implemented Interfaces:
AutoCloseable
,Executor
,ProfilerMeasured
,ProcessorHandle<R>
- Direct Known Subclasses:
Minecraft
,MinecraftServer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected boolean
boolean
Methods inherited from class net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, getPendingTasksCount, getRunningThread, isSameThread, managedBlock, name, pollTask, profiledMetrics, 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.thread.ProcessorHandle
ask, askEither, close
-
Field Details
-
reentrantCount
private int reentrantCount
-
-
Constructor Details
-
ReentrantBlockableEventLoop
-
-
Method Details
-
scheduleExecutables
public boolean scheduleExecutables()- Overrides:
scheduleExecutables
in classBlockableEventLoop<R extends Runnable>
-
runningTask
protected boolean runningTask() -
doRunTask
- Overrides:
doRunTask
in classBlockableEventLoop<R extends Runnable>
-