Using task handle in same task instead of NULL

Hi,
when using a function like xTaskNotifyStateClear() from within the same task that is calling it, my understanding is that you have to use NULL. Correct?

Is it possible also to safely use the task handle?

Thank you

You can use either the task handle or NULL. The ability to use NULL is just for convenience, so tasks don’t have to store their own handles if they want to reference themselves.

Thank you Richard :slight_smile: