net.minecraft.util.thread

public abstract class BlockableEventLoop<R extends Runnable>

implements ProfilerMeasured, TaskScheduler<R>, Executor

bry
net.minecraft.util.thread.BlockableEventLoop
net.minecraft.class_1255
net.minecraft.util.thread.ThreadExecutor
net.minecraft.util.thread.IAsyncTaskHandler

Field summary

Modifier and TypeField
public static final long
k
BLOCK_TIME_NANOS
field_52421
field_52421
private final String
b
name
field_18318
name
private static final org.slf4j.Logger
c
LOGGER
field_5751
LOGGER
private final Queue<R>
d
pendingRunnables
field_5750
tasks
private int
e
blockingCount
field_18319
executionsInProgress

Constructor summary

ModifierConstructor
protected (String name)

Method summary

Modifier and TypeMethod
protected abstract boolean
e(R arg0)
shouldRun(R arg0)
method_18856(R arg0)
canExecute(R task)
public boolean
bx()
isSameThread()
method_18854()
isOnThread()
protected abstract Thread
ay()
getRunningThread()
method_3777()
getThread()
protected boolean
ax()
scheduleExecutables()
method_5384()
shouldExecuteAsync()
public int
by()
getPendingTasksCount()
method_21684()
getTaskCount()
public String
A_()
name()
method_16898()
getName()
public <V> CompletableFuture<V>
a(Supplier<V> arg0)
submit(Supplier<V> arg0)
method_5385(Supplier<V> arg0)
submit(Supplier<V> task)
private CompletableFuture<Void>
b(Runnable arg0)
submitAsync(Runnable arg0)
method_5382(Runnable arg0)
submitAsync(Runnable runnable)
public CompletableFuture<Void>
g(Runnable arg0)
submit(Runnable arg0)
method_20493(Runnable arg0)
submit(Runnable task)
public void
h(Runnable arg0)
executeBlocking(Runnable arg0)
method_19537(Runnable arg0)
submitAndJoin(Runnable runnable)
public void
a_(R arg0)
schedule(R arg0)
method_63588(R arg0)
send(R arg0)
public void
execute(Runnable arg0)
execute(Runnable arg0)
execute(Runnable arg0)
execute(Runnable runnable)
public void
c(Runnable arg0)
executeIfPossible(Runnable arg0)
method_40000(Runnable arg0)
executeSync(Runnable runnable)
protected void
bz()
dropAllTasks()
method_18855()
cancelTasks()
protected void
bA()
runAllTasks()
method_5383()
runTasks()
public boolean
B()
pollTask()
method_16075()
runTask()
public void
b(BooleanSupplier arg0)
managedBlock(BooleanSupplier arg0)
method_18857(BooleanSupplier arg0)
runTasks(BooleanSupplier stopCondition)
protected void
A()
waitForTasks()
method_20813()
waitForTasks()
protected void
d(R arg0)
doRunTask(R arg0)
method_18859(R arg0)
executeTask(R task)
public List<MetricSampler>
bw()
profiledMetrics()
method_34705()
createSamplers()
public static boolean
a(Throwable arg0)
isNonRecoverable(Throwable arg0)
method_61391(Throwable arg0)
isMemoryError(Throwable exception)