task scheduler - xQueueSend

Posted by rirititi on July 7, 2016

A little question about the freeRTOS task scheduler:

Is the task scheduler called inside or just after the xQueueSend function or is the call done at the next system tick?

Thank you,


task scheduler - xQueueSend

Posted by rtel on July 7, 2016

Assuming you have configUSE_PREEMPTION set to 1, then a context switch is performed immediately that a task with a priority above that of the currently executing task becomes able to run. That means, if a lower priority task unblocks a higher priority task by calling xQueueSend() then the context switch will occur inside the xQueueSend() function.


task scheduler - xQueueSend

Posted by rirititi on July 7, 2016

Thank you for your fast answer.


task scheduler - xQueueSend

Posted by rirititi on July 7, 2016

Thank you for your fast answer.