michaeln32 wrote on Tuesday, March 19, 2019:
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
rtel wrote on Tuesday, March 19, 2019:
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.
Ok Thanks