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,MessageListener<R>
- Direct Known Subclasses:
MinecraftClient,MinecraftServer
public abstract class ReentrantThreadExecutor<R extends Runnable> extends ThreadExecutor<R>
- Mappings:
Namespace Name official apbintermediary net/minecraft/class_4093named net/minecraft/util/thread/ReentrantThreadExecutor
-
Field Summary
Fields Modifier and Type Field Description private intrunningTasks -
Constructor Summary
Constructors Constructor Description ReentrantThreadExecutor(String name) -
Method Summary
Modifier and Type Method Description protected voidexecuteTask(R task)protected booleanhasRunningTasks()protected booleanshouldExecuteAsync()Methods inherited from class net.minecraft.util.thread.ThreadExecutor
cancelTasks, canExecute, createTask, execute, getName, getTaskCount, getThread, isOnThread, 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.MessageListener
ask, close, method_27918
-
Field Details
-
runningTasks
private int runningTasks- Mappings:
Namespace Name Mixin selector official bLapb;b:Iintermediary field_18320Lnet/minecraft/class_4093;field_18320:Inamed runningTasksLnet/minecraft/util/thread/ReentrantThreadExecutor;runningTasks:I
-
-
Constructor Details
-
ReentrantThreadExecutor
- Mappings:
Namespace Name Mixin selector official <init>Laox;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1255;<init>(Ljava/lang/String;)Vnamed <init>Lnet/minecraft/util/thread/ThreadExecutor;<init>(Ljava/lang/String;)V
-
-
Method Details
-
shouldExecuteAsync
protected boolean shouldExecuteAsync()- Overrides:
shouldExecuteAsyncin classThreadExecutor<R extends Runnable>- Mappings:
Namespace Name Mixin selector official atLaox;at()Zintermediary method_5384Lnet/minecraft/class_1255;method_5384()Znamed shouldExecuteAsyncLnet/minecraft/util/thread/ThreadExecutor;shouldExecuteAsync()Z
-
hasRunningTasks
protected boolean hasRunningTasks()- Mappings:
Namespace Name Mixin selector official bnLapb;bn()Zintermediary method_18860Lnet/minecraft/class_4093;method_18860()Znamed hasRunningTasksLnet/minecraft/util/thread/ReentrantThreadExecutor;hasRunningTasks()Z
-
executeTask
- Overrides:
executeTaskin classThreadExecutor<R extends Runnable>- Mappings:
Namespace Name Mixin selector official cLaox;c(Ljava/lang/Runnable;)Vintermediary method_18859Lnet/minecraft/class_1255;method_18859(Ljava/lang/Runnable;)Vnamed executeTaskLnet/minecraft/util/thread/ThreadExecutor;executeTask(Ljava/lang/Runnable;)V
-