net.minecraft.util.thread

public abstract class ConsecutiveExecutor<T extends Runnable>

implements Runnable, TaskExecutor<T>, SampleableExecutor

net.minecraft.util.thread.AbstractConsecutiveExecutor
net.minecraft.class_10174
net.minecraft.util.thread.ConsecutiveExecutor

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_54069
LOGGER
private final AtomicReference<ConsecutiveExecutor$Status>
status
field_54070
status
private final TaskQueue<T>
queue
field_54071
queue
private final Executor
executor
field_54072
executor
private final String
name
field_54073
name

Constructor summary

ModifierConstructor
public (TaskQueue<T> queue, Executor executor, String name)

Method summary

Modifier and TypeMethod
private boolean
canBeScheduled()
method_63591()
canRun()
public void
close()
private boolean
pollTask()
method_63592()
runOnce()
public void
run()
public void
runAll()
method_63587()
runAll()
public void
schedule(T task)
method_63588(T arg0)
send(T arg0)
private void
registerForExecution()
method_63593()
scheduleSelf()
public int
size()
method_63589()
queueSize()
public boolean
hasWork()
method_63590()
hasQueuedTasks()
public String
name()
method_16898()
getName()
public List<Sampler>
profiledMetrics()
method_34705()
createSamplers()
private boolean
setRunning()
method_63594()
wakeUp()
private void
setSleeping()
method_63595()
sleep()
private boolean
isRunning()
method_63596()
isRunning()
private boolean
isClosed()
method_63597()
isClosed()