Checking for and deleting task handle

Hi, I have a very simple question. How can I check to see if a task (using it’s task handle) is still in existence, or if it has been deleted?  If I delete it using vTaskDelete, then check the handle to see if it’s NULL, doesn’t seem to work. Should vTaskDelete, after it’s completed, NULL the xTaskHandle pointer? Thanks for your help!

Checking for and deleting task handle

The vTaskDelete function can’t do it as the parameter is not passed in by reference, but the task that calls the delete function can null the handle if that’s what is required. Regards.

Checking for and deleting task handle

Hi,
Thank you for the prompt reply.
Sorry to ask…just how do I get the function it to NULL the pointer. I can’t assign anything on the return function…

Checking for and deleting task handle

OK, I now see what you are saying. Thanks!