Package net.minecraft.util.thread
Class ReentrantThreadExecutor<R extends Runnable>
java.lang.Object
net.minecraft.util.thread.ThreadExecutor<R>
net.minecraft.util.thread.ReentrantThreadExecutor<R>
- All Implemented Interfaces:
AutoCloseable,Executor,SampleableExecutor,TaskExecutor<R>
- Direct Known Subclasses:
MinecraftClient,MinecraftServer
- Mappings:
Namespace Name named net/minecraft/util/thread/ReentrantThreadExecutorintermediary net/minecraft/class_4093official caj
-
Field Summary
FieldsFields inherited from class net.minecraft.util.thread.ThreadExecutor
field_52421 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.util.thread.ThreadExecutor
cancelTasks, canExecute, createSamplers, execute, executeSync, getName, getTaskCount, getThread, isMemoryError, isOnThread, method_72378, runTask, runTasks, runTasks, send, submit, submit, submitAndJoin, 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.TaskExecutor
close, createTask, executeAsync
-
Field Details
-
runningTasks
private int runningTasks- Mappings:
Namespace Name Mixin selector named runningTasksLnet/minecraft/util/thread/ReentrantThreadExecutor;runningTasks:Iintermediary field_18320Lnet/minecraft/class_4093;field_18320:Iofficial bLcaj;b:I
-
-
Constructor Details
-
ReentrantThreadExecutor
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/thread/ThreadExecutor;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1255;<init>(Ljava/lang/String;)Vofficial <init>Lcae;<init>(Ljava/lang/String;)V
-
-
Method Details
-
shouldExecuteAsync
public boolean shouldExecuteAsync()- Overrides:
shouldExecuteAsyncin classThreadExecutor<R extends Runnable>- Mappings:
Namespace Name Mixin selector named shouldExecuteAsyncLnet/minecraft/util/thread/ThreadExecutor;shouldExecuteAsync()Zintermediary method_5384Lnet/minecraft/class_1255;method_5384()Zofficial azLcae;az()Z
-
hasRunningTasks
protected boolean hasRunningTasks()- Mappings:
Namespace Name Mixin selector named hasRunningTasksLnet/minecraft/util/thread/ReentrantThreadExecutor;hasRunningTasks()Zintermediary method_18860Lnet/minecraft/class_4093;method_18860()Zofficial bTLcaj;bT()Z
-
executeTask
- Overrides:
executeTaskin classThreadExecutor<R extends Runnable>- Mappings:
Namespace Name Mixin selector named executeTaskLnet/minecraft/util/thread/ThreadExecutor;executeTask(Ljava/lang/Runnable;)Vintermediary method_18859Lnet/minecraft/class_1255;method_18859(Ljava/lang/Runnable;)Vofficial dLcae;d(Ljava/lang/Runnable;)V
-