OSDN Git Service

ae0cb382176d9cd95e69f6e50f317341adc9c3dd
[nxt-jsp/lejos_nxj.git] / nxtOSEK / lejos_nxj / src / java / classes / lejos / nxt / debug / DebugThread.java
1 package lejos.nxt.debug;\r
2 \r
3 import java.util.*;\r
4 import lejos.nxt.*;\r
5 /**\r
6  * Provides a Java view of the VM thread structure.\r
7  * @author andy\r
8  */\r
9 public class DebugThread\r
10 {\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
17     // you are doing!\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
26     public byte state;\r
27     public byte priority;\r
28     public byte interrupted;\r
29     public byte daemon;\r
30 }\r