Add taskYIELD_WITHIN_API macro (#782)

Add taskYIELD_WITHIN_API macro for readability improvement.
This commit is contained in:
chinglee-iot 2023-10-04 17:38:27 +08:00 committed by GitHub
parent 5cdb1bc4e1
commit 830533d49e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 91 deletions

View file

@ -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
{