29package com.jogamp.newt.util;
31import jogamp.newt.DisplayImpl;
32import com.jogamp.newt.event.NEWTEvent;
80 public void start() throws IllegalStateException;
149 public
boolean invoke(
boolean wait, Runnable task);
EDT stands for Event Dispatch Thread.
boolean isCurrentThreadNEDT()
Returns true if the current thread is the internal NEWT event dequeue thread (NEDT).
boolean isCurrentThreadEDT()
Returns true if the current thread is the event dispatch thread (EDT).
static final long defaultEDTPollPeriod
boolean invokeStop(boolean wait, Runnable finalTask)
Append the final task to the EDT task queue, signals EDT to stop.
void start()
Starts the EDT after it's creation or after stopping.
boolean waitUntilIdle()
Wait until the EDT task queue is empty.
boolean isCurrentThreadEDTorNEDT()
Returns true if either isCurrentThreadEDT() or isCurrentThreadNEDT() is true, otherwise false.
void setPollPeriod(long ms)
boolean invoke(boolean wait, Runnable task)
Appends task to the EDT task queue if current thread is not EDT, otherwise execute task immediately.
boolean waitUntilStopped()
Wait until EDT task is stopped.