Reputation: 387
I'm a newbie of FreeRTOS. But I don't think it's well documented. As in xTaskCreate() :
pcName A descriptive name for the task. This is mainly used to facilitate debugging, but can also be used to obtain a task handle. The maximum length of a task’s name is set using the configMAX_TASK_NAME_LEN parameter in FreeRTOSConfig.h.
In a word, it's not clear about the relation of task's handle and it's name in official document.
Upvotes: 1
Views: 1142
Reputation: 1714
The documentation also states the function to look up a task handle by name takes a long time to complete and should be used sparingly. Personally I don't think there is any reason to use this at all. Just use task names for debug purposes only (useful in a debugger or when using Percipio Trace)
Upvotes: 1