task scheduler – xQueueSend

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

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

Thank you for your fast answer.

task scheduler – xQueueSend

Thank you for your fast answer.