Package net.minecraft.client.sounds
Class SoundEngineExecutor
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<Runnable>
net.minecraft.client.sounds.SoundEngineExecutor
- All Implemented Interfaces:
AutoCloseable
,Executor
,ProfilerMeasured
,TaskScheduler<Runnable>
-
Field Summary
FieldsFields inherited from class net.minecraft.util.thread.BlockableEventLoop
BLOCK_TIME_NANOS
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.util.thread.BlockableEventLoop
doRunTask, dropAllTasks, execute, executeBlocking, executeIfPossible, getPendingTasksCount, isNonRecoverable, isSameThread, managedBlock, name, pollTask, profiledMetrics, runAllTasks, schedule, scheduleExecutables, submit, submit, submitAsync
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.util.thread.TaskScheduler
close, scheduleWithResult
-
Field Details
-
thread
-
shutdown
private volatile boolean shutdown
-
-
Constructor Details
-
SoundEngineExecutor
public SoundEngineExecutor()
-
-
Method Details
-
createThread
-
wrapRunnable
-
shouldRun
- Specified by:
shouldRun
in classBlockableEventLoop<Runnable>
-
getRunningThread
- Specified by:
getRunningThread
in classBlockableEventLoop<Runnable>
-
run
private void run() -
waitForTasks
public void waitForTasks()- Overrides:
waitForTasks
in classBlockableEventLoop<Runnable>
-
flush
public void flush()
-