net.minecraft.util.thread

public abstract class BlockableEventLoop<R extends Runnable>

implements ProfilerMeasured, ProcessorHandle<R>, Executor

ayc
net.minecraft.util.thread.BlockableEventLoop
net.minecraft.class_1255
net.minecraft.util.thread.ThreadExecutor
net.minecraft.src.C_449_
net.minecraft.util.thread.IAsyncTaskHandler

Field summary

Modifier and TypeField
private final String
b
name
field_18318
name
f_18680_
private static final org.slf4j.Logger
c
LOGGER
field_5751
LOGGER
f_18681_
private final Queue<R>
d
pendingRunnables
field_5750
tasks
f_18682_
private int
e
blockingCount
field_18319
executionsInProgress
f_18683_

Constructor summary

ModifierConstructor
protected (String name)

Method summary

Modifier and TypeMethod
protected abstract R
f(Runnable arg0)
wrapRunnable(Runnable arg0)
method_16211(Runnable arg0)
createTask(Runnable runnable)
m_6681_(Runnable arg0)
protected abstract boolean
e(R arg0)
shouldRun(R arg0)
method_18856(R arg0)
canExecute(R task)
m_6362_(R arg0)
public boolean
bm()
isSameThread()
method_18854()
isOnThread()
m_18695_()
protected abstract Thread
au()
getRunningThread()
method_3777()
getThread()
m_6304_()
protected boolean
at()
scheduleExecutables()
method_5384()
shouldExecuteAsync()
m_5660_()
public int
bn()
getPendingTasksCount()
method_21684()
getTaskCount()
m_18696_()
public String
bo()
name()
method_16898()
getName()
m_7326_()
public <V> CompletableFuture<V>
a(Supplier<V> arg0)
submit(Supplier<V> arg0)
method_5385(Supplier<V> arg0)
submit(Supplier<V> task)
m_18691_(Supplier<V> arg0)
private CompletableFuture<Void>
a(Runnable arg0)
submitAsync(Runnable arg0)
method_5382(Runnable arg0)
submitAsync(Runnable runnable)
m_18689_(Runnable arg0)
public CompletableFuture<Void>
g(Runnable arg0)
submit(Runnable arg0)
method_20493(Runnable arg0)
submit(Runnable task)
m_18707_(Runnable arg0)
public void
h(Runnable arg0)
executeBlocking(Runnable arg0)
method_19537(Runnable arg0)
submitAndJoin(Runnable runnable)
m_18709_(Runnable arg0)
public void
i(R arg0)
tell(R arg0)
method_18858(R arg0)
send(R arg0)
m_6937_(R arg0)
public void
execute(Runnable arg0)
execute(Runnable arg0)
execute(Runnable arg0)
execute(Runnable runnable)
execute(Runnable arg0)
public void
c(Runnable arg0)
executeIfPossible(Runnable arg0)
method_40000(Runnable arg0)
executeSync(Runnable runnable)
m_201446_(Runnable arg0)
protected void
bp()
dropAllTasks()
method_18855()
cancelTasks()
m_18698_()
protected void
bq()
runAllTasks()
method_5383()
runTasks()
m_18699_()
public boolean
x()
pollTask()
method_16075()
runTask()
m_7245_()
public void
c(BooleanSupplier arg0)
managedBlock(BooleanSupplier arg0)
method_18857(BooleanSupplier arg0)
runTasks(BooleanSupplier stopCondition)
m_18701_(BooleanSupplier arg0)
protected void
br()
waitForTasks()
method_20813()
waitForTasks()
m_5667_()
protected void
d(R arg0)
doRunTask(R arg0)
method_18859(R arg0)
executeTask(R task)
m_6367_(R arg0)
public List<MetricSampler>
bl()
profiledMetrics()
method_34705()
createSamplers()
m_142754_()