yukunduan wrote on Tuesday, October 13, 2015:
Now,I met one problem.
First i created one service task to create five tasks .And the five tasks call the same function.When tasks run over,the service task delete himself.
void gvf_serve_task( void *pvParameters )
{
xTaskCreate(gvf_download_task,"task0",......);
xTaskCreate(gvf_download_task,"task1",......);
xTaskCreate(gvf_download_task,"task2",......);
xTaskCreate(gvf_download_task,"task3",......);
xTaskCreate(gvf_download_task,"task4",......);
if(all_task_run_over)
vTaskDelete(NULL);
}
void gvf_download_task(void *pvParameters)
{
...
...
vTaskDelete(NULL);
}
When the first time gvf_serve_task has beed created, the five gvf_download_tasks run success.At the second time,it,s still success.At the third time,it,s still success.
But when gvf_serve_task run fourth time,none task has been created!!!
And I had check the variables,found no problem.
So ,i want to check the gvf_download_task if existed in the list of taskTCB.