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 BlockableEventLoop
BLOCK_TIME_NANOS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class BlockableEventLoop
delayCrash, doRunTask, dropAllTasks, execute, executeBlocking, executeIfPossible, getPendingTasksCount, hasDelayedCrash, isNonRecoverable, isSameThread, managedBlock, name, pollTask, profiledMetrics, relayDelayCrash, runAllTasks, scheduleExecutables, shouldRunAllTasks, submit, submit, submitAsyncMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TaskScheduler
close, scheduleWithResult
-
Field Details
-
thread
-
shutdown
private volatile boolean shutdown
-
-
Constructor Details
-
SoundEngineExecutor
public SoundEngineExecutor()
-
-
Method Details
-
createThread
-
wrapRunnable
-
schedule
- Specified by:
schedulein interfaceTaskScheduler<Runnable>- Overrides:
schedulein classBlockableEventLoop<Runnable>
-
shouldRun
- Specified by:
shouldRunin classBlockableEventLoop<Runnable>
-
getRunningThread
- Specified by:
getRunningThreadin classBlockableEventLoop<Runnable>
-
run
private void run() -
waitForTasks
protected void waitForTasks()- Overrides:
waitForTasksin classBlockableEventLoop<Runnable>
-
shutDown
public void shutDown() -
startUp
public void startUp()
-