The tsk_lock function disables the RTX kernel timer
interrupts and thereby disables task switching.
The tsk_lock function is in the RL-RTX library. The
prototype is defined in rtl.h.
Note
Nested calls of the function tsk_lock are not
supported.
Calling the function tsk_lock from an interrupt handler
is not allowed.
For the duration when timer interrupts are disabled, the RTX
kernel task scheduler and Round Robin task scheduling is blocked,
and timeouts do not work. Hence, it is highly recommended to
disable RTX kernel timer interrupts only for a very short time
period.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.