|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.csstudio.ui.util.thread.UIBundlingThread
public final class UIBundlingThread
A singleton back thread which will help to execute tasks in UI thread. This way we avoid slow downs, that occur on several operating systems, when Display.asyncExec() is called very often from background threads. This thread sleeps for a time, which is below the processing capacity of human eyes and brain - so the user will not feel any delay.
Method Summary | |
---|---|
void |
addRunnable(Display display,
java.lang.Runnable runnable)
Adds the specified runnable to the queue. |
void |
addRunnable(java.lang.Runnable runnable)
Adds the specified runnable to the queue. |
static UIBundlingThread |
getInstance()
Gets the singleton instance. |
void |
run()
. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UIBundlingThread getInstance()
public void run()
run
in interface java.lang.Runnable
public void addRunnable(java.lang.Runnable runnable)
runnable
- the runnablepublic void addRunnable(Display display, java.lang.Runnable runnable)
runnable
- the runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |