1 package lejos.nxt.debug;
\r
6 * Provides a Java view of the VM thread structure.
\r
9 public class DebugThread
\r
11 // NOTE This is very very iffy. This class does not really "exist"
\r
12 // The real class type is thread. However to make the private contents
\r
13 // availabe without having to change the thread class or add things to
\r
14 // java.lang, we cheat. Basically the firmware hands us a thread ref.
\r
15 // we pretend it is a DebugThread... Things seem to work. Do not add
\r
16 // methods or anything else to this class unless you really know what
\r
18 public DebugThread nextThread;
\r
19 public Object waitingOn;
\r
20 public int sleepUntil;
\r
21 public int[] stackFrameArray;
\r
22 public int[] stackArray;
\r
23 public byte stackFrameArraySize;
\r
24 public byte monitorCount;
\r
25 public byte threadId;
\r
27 public byte priority;
\r
28 public byte interrupted;
\r