|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.sp.util.ThreadUtilities
public class ThreadUtilities
The threadpool of jEdit.
It uses a ExecutorService from the java.util.concurrent package.
You can run Task or Runnable in it, Runnables will be
encapsulated in Task.
| Method Summary | |
|---|---|
static void |
runInBackground(java.lang.Runnable runnable)
Run the runnable in the threadpool. |
static void |
runInBackground(Task task)
Run the task in the threadpool. |
static void |
runInDispatchThread(java.lang.Runnable runnable)
Run the runnable in EventDispatch Thread. |
static void |
runInDispatchThreadAndWait(java.lang.Runnable runnable)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void runInDispatchThread(java.lang.Runnable runnable)
runnable - the runnable to runpublic static void runInDispatchThreadAndWait(java.lang.Runnable runnable)
public static void runInBackground(java.lang.Runnable runnable)
Task
runnable - the runnable to runrunInBackground(Task)public static void runInBackground(Task task)
Task
task - the task to run
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||