Everything

rsm_tsk

irsm_tsk

Outline
Resume suspended task.
C format
 ER      rsm_tsk (ID tskid);
 ER      irsm_tsk (ID tskid);
Parameter(s)
I/O
Parameter
Description
I
 ID      tskid;
ID number of the task.

Explanation
These service calls move the task specified by parameter tskid from the SUSPENDED state to the READY state, or from the WAITING-SUSPENDED state to the WAITING state.
Note 1 These service calls do not perform queuing of forced cancelation requests. If the target task is neither in the SUSPENDED state nor WAITING-SUSPENDED state, "E_OBJ" is returned.
Note 2 The RI600V4 does not support queuing of suspend request. The behavior of the frsm_tsk and ifrsm_tsk, that can release from the SUSPENDED state even if suspend request has been queued, are same as rsm_tsk and irsm_tsk.
Return value
Macro
Value
Description
E_OK
0
Normal completion.
E_ID
-18
Invalid ID number.
- tskid < 0
- tskid > VTMAX_TSK
E_CTX
-25
Context error.
- This service call was issued in the CPU locked state.
- The irsm_tsk was issued from task.
- The rsm_tsk was issued from non-task.
- This service call was issued in the status "PSW.IPL > kernel interrupt mask level".
E_OBJ
-41
Object state error.
- Specified task is neither in the SUSPENDED state nor WAITING-SUSPENDED state.