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, TaskScheduler<R>
- Direct Known Subclasses:
Minecraft, MinecraftServer
-
Field Summary
FieldsFields inherited from class BlockableEventLoop
BLOCK_TIME_NANOS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected booleanprotected booleanMethods inherited from class BlockableEventLoop
delayCrash, dropAllTasks, execute, executeBlocking, executeIfPossible, getPendingTasksCount, getRunningThread, hasDelayedCrash, isNonRecoverable, isSameThread, managedBlock, name, pollTask, profiledMetrics, relayDelayCrash, runAllTasks, schedule, shouldRun, shouldRunAllTasks, submit, submit, submitAsync, waitForTasksMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TaskScheduler
close, scheduleWithResult, wrapRunnable
-
Field Details
-
reentrantCount
private int reentrantCount
-
-
Constructor Details
-
ReentrantBlockableEventLoop
-
-
Method Details
-
scheduleExecutables
protected boolean scheduleExecutables()- Overrides:
scheduleExecutablesin classBlockableEventLoop<R extends Runnable>
-
runningTask
protected boolean runningTask() -
doRunTask
- Overrides:
doRunTaskin classBlockableEventLoop<R extends Runnable>
-