| Modifier and Type | Class and Description |
|---|---|
| public static class | ThreadControllerWrapper.
Thread controller utility class for incremental SAX source. |
| Modifier and Type | Field and Description |
|---|---|
| private static ThreadControllerWrapper. | m_tpool
The ThreadController pool |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Thread | |
| public static void |
| m_tpool | back to summary |
|---|---|
| private static ThreadControllerWrapper. The ThreadController pool | |
| ThreadControllerWrapper | back to summary |
|---|---|
| public ThreadControllerWrapper() | |
| runThread | back to summary |
|---|---|
| public static Thread runThread(Runnable runnable, int priority) | |
| waitThread | back to summary |
|---|---|
| public static void waitThread(Thread worker, Runnable task) throws InterruptedException | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Thread | Returns: The thread that is running the task, can be used to wait for completionthe Runnable task, int if >0 the task will run with the given priority (
doesn't seem to be used in xalan, since it's always the default ) priority)Will get a thread from the pool, execute the task and return the thread to the pool. |
| public void | waitThread(Thread
worker thread worker, Runnable the Runnable task)Wait until the task is completed on the worker thread. |
| ThreadController | back to summary |
|---|---|
| public ThreadController() | |
| run | back to summary |
|---|---|
| public Thread run(Runnable task, int priority) Will get a thread from the pool, execute the task and return the thread to the pool. The return value is used only to wait for completion | |
| waitThread | back to summary |
|---|---|
| public void waitThread(Thread worker, Runnable task) throws InterruptedException Wait until the task is completed on the worker thread. | |