how and where ‘xTaskHandle' is defined?

embeddedzhang wrote on Thursday, January 16, 2014:

I want to learn how a task handle is DEFINED, but I have searched in the source code of freertos 7.6.0, and cannot find any place for the DEFINITION, not declaration of xTaskHandle. anyone can help?

rtel wrote on Thursday, January 16, 2014:

See line 96:
http://sourceforge.net/p/freertos/code/HEAD/tree/tags/V7.6.0/FreeRTOS/Source/include/task.h

Note FreeRTOS 8 renames this TaskHandle_t, and includes a #define xTaskHandle TaskHandle_t to allow backward compatibility.

Regards.