Updated Jun 2025
vTaskResume()
task. h
1void vTaskResume( TaskHandle_t xTaskToResume );
INCLUDE_vTaskSuspend
Resumes a suspended task.
A task that has been suspended by one or more calls to
vTaskSuspend(
vTaskResume()
Parameters:
-
xTaskToResume
Handle to the task being readied.
Example usage:
1void vAFunction( void )2{3 TaskHandle_t xHandle;45 // Create a task, storing the handle.6 xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, &xHandle );78 // ...910 // Use the handle to suspend the created task.11 vTaskSuspend( xHandle );1213 // ...1415 // The created task will not run during this period, unless16 // another task calls vTaskResume( xHandle ).1718 //...1920 // Resume the suspended task ourselves.21 vTaskResume( xHandle );2223 // The created task will once again get microcontroller processing24 // time in accordance with its priority within the system.25}