Everything

dly_tsk

Outline
Delay task.
C format
 ER      dly_tsk (RELTIM dlytim);
Parameter(s)
I/O
Parameter
Description
I
 RELTIM  dlytim;
Amount of time to delay the invoking task (unit:millisecond).

Explanation
This service call moves the invoking task from the RUNNING state to the WAITING state (delayed state).
As a result, the invoking task is unlinked from the ready queue and excluded from the RI850V4 scheduling subject.
The delayed state is cancelled in the following cases, and then moved to the READY state.
Delayed State Cancel Operation
Return Value
Delay time specified by parameter dlytim has elapsed.
E_OK
Forced release from waiting (accept rel_wai while waiting).
E_RLWAI
Forced release from waiting (accept irel_wai while waiting).
E_RLWAI

Return value
Macro
Value
Description
E_OK
0
Normal completion.
E_CTX
-25
Context error.
- This service call was issued from a non-task.
- This service call was issued in the CPU locked state.
- This service call was issued in the dispatching disabled state.
E_RLWAI
-49
Forced release from the WAITING state.
- Accept rel_wai/irel_wai while waiting.