Package net.minecraft.client.audio
Class SoundEngineExecutor
java.lang.Object
net.minecraft.util.concurrent.ThreadTaskExecutor<Runnable>
net.minecraft.client.audio.SoundEngineExecutor
- All Implemented Interfaces:
AutoCloseable
,Executor
,ITaskExecutor<Runnable>
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.util.concurrent.ThreadTaskExecutor
doRunTask, dropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, managedBlock, name, pollTask, runAllTasks, scheduleExecutables, submit, submit, submitAsync, tell
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.concurrent.ITaskExecutor
ask, askEither, close
-
Field Details
-
thread
-
shutdown
private volatile boolean shutdown
-
-
Constructor Details
-
SoundEngineExecutor
public SoundEngineExecutor()
-
-
Method Details
-
createThread
-
wrapRunnable
- Specified by:
wrapRunnable
in classThreadTaskExecutor<Runnable>
-
shouldRun
- Specified by:
shouldRun
in classThreadTaskExecutor<Runnable>
-
getRunningThread
- Specified by:
getRunningThread
in classThreadTaskExecutor<Runnable>
-
run
private void run() -
waitForTasks
protected void waitForTasks()- Overrides:
waitForTasks
in classThreadTaskExecutor<Runnable>
-
flush
public void flush()
-