MCPcopy Create free account
hub / github.com/FreeRTOS/FreeRTOS-Kernel / vTaskYieldWithinAPI

Function vTaskYieldWithinAPI

tasks.c:5253–5263  ·  view source on GitHub ↗

* If not in a critical section then yield immediately. * Otherwise set xYieldPending to true to wait to * yield until exiting the critical section. */

Source from the content-addressed store, hash-verified

5251 * yield until exiting the critical section.
5252 */
5253void vTaskYieldWithinAPI( void )
5254{
5255 if( pxCurrentTCB->uxCriticalNesting == 0U )
5256 {
5257 portYIELD();
5258 }
5259 else
5260 {
5261 xYieldPendings[ portGET_CORE_ID() ] = pdTRUE;
5262 }
5263}
5264/*-----------------------------------------------------------*/
5265
5266#if ( portCRITICAL_NESTING_IN_TCB == 1 )

Callers 13

xQueueGenericSendFunction · 0.85
xQueueReceiveFunction · 0.85
xQueueSemaphoreTakeFunction · 0.85
xQueuePeekFunction · 0.85
vTaskDeleteFunction · 0.85
xTaskDelayUntilFunction · 0.85
vTaskDelayFunction · 0.85
vTaskSuspendFunction · 0.85
ulTaskGenericNotifyTakeFunction · 0.85
xTaskGenericNotifyWaitFunction · 0.85
xEventGroupSyncFunction · 0.85
xEventGroupWaitBitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected