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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected booleanbooleanMethods inherited from class net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, executeIfPossible, getPendingTasksCount, getRunningThread, isSameThread, managedBlock, name, pollTask, profiledMetrics, runAllTasks, shouldRun, submit, submit, submitAsync, tell, waitForTasks, wrapRunnableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
scheduleExecutablesin classBlockableEventLoop<R extends Runnable>
-
runningTask
protected boolean runningTask() -
doRunTask
- Overrides:
doRunTaskin classBlockableEventLoop<R extends Runnable>
-