-
ref_tst
iref_tst
-
Reference task state (simplified version).
ER ref_tst (ID tskid, T_RTST *pk_rtst);
ER iref_tst (ID tskid, T_RTST *pk_rtst);
|
|
|
|
ID tskid;
|
Value: ID number of the task.
|
|
T_RTST *pk_rtst;
|
Pointer to the packet returning the task state.
|
[Task state packet (simplified version): T_RTST]
typedef struct t_rtst {
STAT tskstat; /*Current state*/
STAT tskwait; /*Reason for waiting*/
} T_RTST;
|
Stores task state packet (current state, reason for waiting) of the task specified by parameter
tskid in the area specified by parameter
pk_rtst.
Used for referencing only the current state and reason for wait among task information.
Response becomes faster than using
ref_tsk or
iref_tsk because only a few information items are acquired.
-
tskstatStores the current state.
-
tskwaitStores the reason for waiting.
The
tskwait is effective only when the
tskstat is TTS_WAI or TTS_WAS.
|
|
|
|
|
|
|
|
- When this service call was issued from a non-task, TSK_SELF was specified for tskid.
|
|
|
- This service call was issued in the CPU locked state.
- This service call was issued in the status "PSW.IPL > kernel interrupt mask level".
Note When the iref_tst is issued from task or the ref_tst is issued from non-task, the context error is not detected and normal operation of the system is not guaranteed.
|