task scheduler - xQueueSend

rirititi wrote on Thursday, July 07, 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,

rtel wrote on Thursday, July 07, 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.

rirititi wrote on Thursday, July 07, 2016:

Thank you for your fast answer.

rirititi wrote on Thursday, July 07, 2016:

Thank you for your fast answer.