Hello,
Why does not RTX implement a reference counter for its "tsk_lock"/"tsk_unlock" mechanism? The way things are implemented at the moment, any task that calls "tsk_unlock" enables the scheduler. But this can cause problems in nested calls; And, can cause a RTX kernel corruption if some code calls this from interrupt mode while a task is executing a RTX API (which assumes scheduler is disabled). There is no indication in the user manual that the kernel can be damaged if the scheduler is enabled from interrupt mode (NOTE: enabling the scheduler from interrupt mode only sets an interrupt line which is inherently safe!). FreeRTOS has this feature (and much more). Why not RTX?
I know who I vote for...
<quote>(NOTE: enabling the scheduler from interrupt mode only sets an interrupt line which is inherently safe!).</quote>
Tapeer,
did U mean 2 say inherently unsafe????
Always yo're freind.
Zeusti
Look, you are clearly not intelligent enough to understand the problem. It would be nice if you actually stopped spamming the forum or at least showed the minimal courage to use your name or at least proper English.
// response removed to spare ops embarrassment
Zeusti.
View all questions in Keil forum