Top Description Fields Constructors Methods
jogamp.opengl

public Class GLRunnableTask

extends Object
implements GLRunnable
Class Inheritance
All Implemented Interfaces
com.jogamp.opengl.GLRunnable
Imports
com.jogamp.opengl.GLRunnable, .GLAutoDrawable, com.jogamp.common.ExceptionUtils

Helper class to provide a Runnable queue implementation with a Runnable wrapper which notifies after execution for the invokeAndWait() semantics.

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv volatile boolean
pack-priv volatile boolean
pack-priv Object
pack-priv GLRunnable
pack-priv Throwable

Constructor Summary

AccessConstructor and Description
public
GLRunnableTask(final GLRunnable runnable, final Object notifyObject, final boolean catchExceptions)

Method Summary

Modifier and TypeMethod and Description
public void
flush()

Simply flush this task and notify a waiting executor.

public Throwable
public boolean

Returns:

whether this task has been executed.
isExecuted
()

public boolean

Returns:

whether this task has been flushed.
isFlushed
()

public boolean
public boolean
run(final GLAutoDrawable
the associated drawable and current context for this call
drawable
)

Implements com.jogamp.opengl.GLRunnable.run.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

catchExceptionsback to summary
pack-priv boolean catchExceptions
isExecutedback to summary
pack-priv volatile boolean isExecuted
isFlushedback to summary
pack-priv volatile boolean isFlushed
notifyObjectback to summary
pack-priv Object notifyObject
runnableback to summary
pack-priv GLRunnable runnable
runnableExceptionback to summary
pack-priv Throwable runnableException

Constructor Detail

GLRunnableTaskback to summary
public GLRunnableTask(final GLRunnable runnable, final Object notifyObject, final boolean catchExceptions)

Method Detail

flushback to summary
public void flush()

Simply flush this task and notify a waiting executor.

The executor which might have been blocked until notified will be unblocked and the task removed from the queue.

See Also
isFlushed(), isInQueue()
getThrowableback to summary
public Throwable getThrowable()
isExecutedback to summary
public boolean isExecuted()
Returns:boolean

whether this task has been executed.

See Also
isInQueue()
isFlushedback to summary
public boolean isFlushed()
Returns:boolean

whether this task has been flushed.

See Also
isInQueue()
isInQueueback to summary
public boolean isInQueue()
Returns:boolean

!isExecuted() && !isFlushed()

runback to summary
public boolean run(final GLAutoDrawable drawable)

Implements com.jogamp.opengl.GLRunnable.run.

Parameters
drawable:GLAutoDrawable

Doc from com.jogamp.opengl.GLRunnable.run.

the associated drawable and current context for this call

Returns:boolean

Doc from com.jogamp.opengl.GLRunnable.run.

true if the GL [back] framebuffer remains intact by this runnable, otherwise false. If returning false GLAutoDrawable will call display(GLAutoDrawable) of all registered GLEventListeners once more.

Annotations
@Override