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

Function xTaskCatchUpTicks

tasks.c:3375–3390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3373/*----------------------------------------------------------*/
3374
3375BaseType_t xTaskCatchUpTicks( TickType_t xTicksToCatchUp )
3376{
3377 BaseType_t xYieldOccurred;
3378
3379 /* Must not be called with the scheduler suspended as the implementation
3380 * relies on xPendedTicks being wound down to 0 in xTaskResumeAll(). */
3381 configASSERT( uxSchedulerSuspended == 0 );
3382
3383 /* Use xPendedTicks to mimic xTicksToCatchUp number of ticks occurring when
3384 * the scheduler is suspended so the ticks are executed in xTaskResumeAll(). */
3385 vTaskSuspendAll();
3386 xPendedTicks += xTicksToCatchUp;
3387 xYieldOccurred = xTaskResumeAll();
3388
3389 return xYieldOccurred;
3390}
3391/*----------------------------------------------------------*/
3392
3393#if ( INCLUDE_xTaskAbortDelay == 1 )

Callers 1

MPU_xTaskCatchUpTicksFunction · 0.85

Calls 2

vTaskSuspendAllFunction · 0.85
xTaskResumeAllFunction · 0.85

Tested by

no test coverage detected