|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.nxt.debug.DebugThreads
public class DebugThreads
This class provides access to the VM threads structures. The VM holds the thread structures as a set of circular linked lists of threads. There is one list for each thread priority level and the head of the list is referred to from the threads array.
Constructor Summary | |
---|---|
DebugThreads(DebugInterface info)
Initialise access to the VM structures |
Method Summary | |
---|---|
int |
enumerate(DebugThread[] curThreads)
Return the currently exsiting threads as an array. |
protected static void |
resumeThread(Object thread)
Resume a thread. |
protected static void |
suspendThread(Object thread)
Suspend a thread. |
static Thread |
toThread(DebugThread dt)
Convert a DebugThread into a Thread to allow access to the normal Thread interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DebugThreads(DebugInterface info)
info
- the interface to the VMMethod Detail |
---|
public int enumerate(DebugThread[] curThreads)
curThreads
- array to store the threads
public static Thread toThread(DebugThread dt)
dt
- the DebugThread
protected static final void suspendThread(Object thread)
thread
- protected static final void resumeThread(Object thread)
thread
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |