Is it a mandator rule that a task must call "vTaskDelete" to delete itself?

Hi folks:
Is it a mandator rule that a task must call “vTaskDelete” to delete itself ? what would happen
if a task just return without call vTaskDelete?
thank you!

Yes, it is mandatory, hence a rule, hence it is in the documentation. Try to see what happens if you don’t :wink:

Actually, in some ports, if you don’t delete the task and instead just run off the end of its implementing function you will end up in a function called something like “TaskDeleteError()” (forget the real name), that just hits an assert() so the application writer knows and can read the comment there.

thank you very much!