The tsk_unlock function enables the RTX kernel timer interrupts and thereby enables task switching if they had been disabled by the tsk_lock function. The tsk_unlock function is in the RL-RTX library. The prototype is defined in rtl.h. Note - Calling tsk_lock function from an interrupt handler is not allowed.
|