]> begriffs open source - freertos/commit
Fix missed yield in xTaskResumeFromISR (#207)
authorGaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Fri, 23 Oct 2020 00:09:35 +0000 (17:09 -0700)
committerGitHub <noreply@github.com>
Fri, 23 Oct 2020 00:09:35 +0000 (17:09 -0700)
commitdb62e30bce2101d20946220a9e3719bc47c75587
tree9671528fb73ea6cd6c79b091665625be528fe9ef
parentc6636f465f2bc70a31963356e549ebf514f892c3
Fix missed yield in xTaskResumeFromISR (#207)

If a higher priority task than the currently running task was resumed
using xTaskResumeFromISR and the user chose to ignore the return value
of xTaskResumeFromISR to initiate a context switch using
portYIELD_FROM_ISR, we were not doing the context switch on the next run
of the scheduler. This change fixes this by marking a yield as pending
to ensure that the context switch is performed on the next run of the
scheduler.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
tasks.c