Closed chinglee-iot closed 1 year ago
Patch coverage: 100.00%
and project coverage change: -0.01%
:warning:
Comparison is base (
26c48de
) 94.35% compared to head (498083c
) 94.35%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@RichardBarry This PR is updated. Would you like to review this PR again?
Update
taskYIELD_IF_USING_PREEMPTION
to align single core and SMP implementation.Description
taskYIELD_IF_USING_PREEMPTION
is called in the following two scenarios in single core implementation:In single core implementation both of the scenarios is achieved by calling
portYIELD_WITHIN_API()
. However, these scenarios are handled differently in SMP.prvYieldCore()
is called when requesting a running task to yield andprvYieldForTask()
is called when yielding a running task for higher priority task.This PR tries to align these scenarios with the same macro in single core and SMP. A new macro
taskYIELD_ANY_CORE_IF_USING_PREEMPTION
is added. ExistingtaskYIELD_IF_USING_PREEMPTION
macro is renamed totaskYIELD_TASK_CORE_IF_USING_PREEMPTION
with one parameter.Single core implementation
SMP implementation
Checklist:
I have modified and/or added unit-tests to cover the code changes in this Pull Request.Related Issue
Address #750 comment in line 61.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.