| Description | The tsk_lock function disables the RTX kernel timer interrupts and thereby disables task switching. The task_lock function is in the RL-RTX library. The prototype is defined in rtl.h. Note - Nested calls of tsk_lock function are not supported.
- Calling tsk_lock function from an interrupt handler is not allowed.
- For the duration when the timer interrupts are disabled, the RTX kernel task scheduler is blocked, timeouts do not work, and the Round Robin task scheduling is also blocked. Hence, it is highly recommended that disabling of the RTX kernel timer interrupts is kept to a very short time period.
|