-
slp_tsk
-
Put task to sleep (waiting forever).
ER slp_tsk (void);
As a result, the invoking task is unlinked from the ready queue and excluded from the RI600PX scheduling subject.
If a wake-up request has been queued to the target task (the wake-up request counter > 0) when this service call is issued, this service call does not move the state but decrements the wake-up request counter (by subtracting 1 from the wake-up request counter).
The sleeping state is cancelled in the following cases.
Sleeping State Cancel Operation
|
|
A wake-up request was issued as a result of issuing wup_tsk.
|
|
A wake-up request was issued as a result of issuing iwup_tsk.
|
|
Forced release from waiting (accept rel_wai while waiting).
|
|
Forced release from waiting (accept irel_wai while waiting).
|
|
|
|
|
|
|
|
|
|
- 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.
- This service call was issued in the status "PSW.IPL > kernel interrupt mask level".
|
|
|
- Stack pointer points out of user stack for invoking task.
|
|
|
Forced release from the WAITING state.
|