Package org.epics.pvdata.misc
Interface ThreadCreate
-
public interface ThreadCreateThreadCreate : Create a thread. This provides two features:- The create does not return until the thread has started.
- Keeps a list of all active threads, i.e. threads for which the run method has not returned.
- Author:
- mrk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Threadcreate(String name, int priority, RunnableReady runnableReady)Create a new thread.Thread[]getThreads()Get an array of all the active threads.
-
-
-
Method Detail
-
create
Thread create(String name, int priority, RunnableReady runnableReady)
Create a new thread.- Parameters:
name- the thread namepriority- the thread priorityrunnableReady- an implementation of RunnableReady- Returns:
- the newly created thread. Create does not return until ready has been called.
-
getThreads
Thread[] getThreads()
Get an array of all the active threads.- Returns:
- The array.
-
-