xTaskCreate
I create a task (called init_task) using xTaskCreate().
The task is
void init_task(void* prt)
{
//Code//
vTaskDelete(NULL);
}
Can I delete the init_task indise of it (like the above example) ?
Is this action is legal ?
Thanks
Michael
xTaskCreate
Yes, perfectly legal, and as per the examples and documentation we
provide. Be aware that if a task deletes itself then the memory used
for the task’s stack and TCB won’t be deleted until the Idle task runs.
xTaskCreate
Ok Thanks