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,TaskScheduler<R>
- Direct Known Subclasses:
Minecraft,MinecraftServer
-
Field Summary
FieldsFields inherited from class net.minecraft.util.thread.BlockableEventLoop
BLOCK_TIME_NANOS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected booleanbooleanMethods inherited from class net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, executeIfPossible, getPendingTasksCount, getRunningThread, isNonRecoverable, isSameThread, managedBlock, name, pollTask, profiledMetrics, runAllTasks, schedule, shouldRun, submit, submit, submitAsync, waitForTasksMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.thread.TaskScheduler
close, scheduleWithResult, wrapRunnable
-
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>
-