|
|
Displays information about the RTSS thread that was
Includes thread identifier, process name, process identifier, flags that indicate thread behavior, current state, native priority, and current priority.
Syntax
!rtxcurrentthread
Parameters
none
Notes
rtxcurrentthread can return the following values for the Thread State and Flags items. The flags can be combined together.
The following table describes the thread flag values:
|
Flag |
Thread Behavior |
|
0x0 |
Default behavior |
|
0x1 |
Do not deallocate memory |
|
0x2 |
Do not free the thread’s stack |
|
0x4 |
Thread terminated |
|
0x8 |
Thread cannot be resumed |
|
0x10 |
Interrupt thread |
|
0x20 |
Using Floating Point |
The following table describes the thread state values:
|
Flag |
Thread State |
|
0x0 |
Ready to run or running |
|
0x1 |
Waiting on synch object |
|
0x2 |
Waiting on internal event |
|
0x3 |
Waiting for resume |
|
0x4 |
Sleeping in sleep call |
|
0x5 |
Frozen |
!rtxcurrentthread
Processor # 3, Current Thread 0x874ae520 Summary Information:
Process ID 0x00000001 Process Name RtssApp1.rtss Thread ID 0x00000009 Thread Address 0x874ae520 Thread State 0x00000000 Flags 0x00000021 Native Priority 0x00000000 Current Priority 0x00000000 Processor Affinity 0x00000008 Affined Processor Num 0x00000003