29package com.jogamp.common.util;
31import java.io.PrintStream;
33import com.jogamp.common.JogampRuntimeException;
67 final boolean waitUntilDone,
final Runnable
runnable) {
69 if( !waitUntilDone ) {
74 final Object sync =
new Object();
82 }
catch (
final InterruptedException ie) {
122 tStarted = System.currentTimeMillis();
126 }
catch (
final Throwable t) {
144 }
catch (
final Throwable t) {
A generic unchecked exception for Jogamp errors used throughout the binding as a substitute for Runti...
java.lang.Thread specialization implementing InterruptSource to track java.lang.Thread#interrupt() ca...
static Thread create(final ThreadGroup tg, final Runnable target, final String name)
Depending on whether name is null, either Thread(ThreadGroup, Runnable, String) or Thread(ThreadGroup...
Unchecked exception propagating an InterruptedException where handling of the latter is not desired.
Helper class to provide a Runnable queue implementation with a Runnable wrapper which notifies after ...
static RunnableTask invokeOnCurrentThread(final Runnable runnable)
Invokes runnable on the current Thread.
final Runnable getRunnable()
Return the user action.
RunnableTask(final Runnable runnable, final Object syncObject, final boolean catchExceptions, final PrintStream exceptionOut)
Create a RunnableTask object w/ synchronization, ie.
static RunnableTask invokeOnNewThread(final ThreadGroup tg, final String threadName, final boolean waitUntilDone, final Runnable runnable)
Invokes runnable on a new InterruptSource.Thread, see InterruptSource.Thread#Thread(ThreadGroup,...
Helper class to provide a Runnable queue implementation with a Runnable wrapper which notifies after ...
final void printSourceTrace()
Throwable runnableException
final String getExceptionOutIntro()
final Throwable getThrowable()
final boolean isInQueue()
final boolean catchExceptions
volatile Thread execThread
volatile boolean isExecuted
final PrintStream exceptionOut
Interface exposing java.lang.Thread#interrupt() source, intended for java.lang.Thread specializations...