这个接口不存在了?xTaskGetHandle
Posted: Wed Jun 02, 2021 9:09 am
在ESP-IDF编程指南中可以找到此函数定义:
实际代码中找不到这个定义。
我想通过task name来查找是否此任务已经创建,应该怎么办呢?
thx
Code: Select all
TaskHandle_txTaskGetHandle(const char *pcNameToQuery)
Note
This function takes a relatively long time to complete and should be used sparingly.
Return
The handle of the task that has the human readable name pcNameToQuery. NULL is returned if no matching name is found. INCLUDE_xTaskGetHandle must be set to 1 in FreeRTOSConfig.h for pcTaskGetHandle() to be available.
我想通过task name来查找是否此任务已经创建,应该怎么办呢?
thx