| 3373 | /*----------------------------------------------------------*/ |
| 3374 | |
| 3375 | BaseType_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 ) |
no test coverage detected