mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Add taskYIELD_WITHIN_API macro (#782)
Add taskYIELD_WITHIN_API macro for readability improvement.
This commit is contained in:
parent
5cdb1bc4e1
commit
830533d49e
5 changed files with 17 additions and 91 deletions
10
timers.c
10
timers.c
|
@ -771,15 +771,7 @@
|
|||
* block time to expire. If a command arrived between the
|
||||
* critical section being exited and this yield then the yield
|
||||
* will not cause the task to block. */
|
||||
#if ( configNUMBER_OF_CORES == 1 )
|
||||
{
|
||||
portYIELD_WITHIN_API();
|
||||
}
|
||||
#else /* #if ( configNUMBER_OF_CORES == 1 ) */
|
||||
{
|
||||
vTaskYieldWithinAPI();
|
||||
}
|
||||
#endif /* #if ( configNUMBER_OF_CORES == 1 ) */
|
||||
taskYIELD_WITHIN_API();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue