Package zombie.core.opengl
Class RenderContextQueueItem
java.lang.Object
zombie.core.opengl.RenderContextQueueItem
public final class RenderContextQueueItem
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description static RenderContextQueueItem
alloc(java.lang.Runnable runnable)
java.lang.Throwable
getThrown()
void
invoke()
boolean
isFinished()
boolean
isWaiting()
void
notifyWaitingListeners()
void
setWaiting()
void
waitUntilFinished(java.util.function.BooleanSupplier booleanSupplier)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
alloc
-
waitUntilFinished
public void waitUntilFinished(java.util.function.BooleanSupplier booleanSupplier) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
isFinished
public boolean isFinished() -
setWaiting
public void setWaiting() -
isWaiting
public boolean isWaiting() -
invoke
public void invoke() -
getThrown
public java.lang.Throwable getThrown() -
notifyWaitingListeners
public void notifyWaitingListeners()
-