feilipu / Arduino_FreeRTOS_Library

A FreeRTOS Library for all Arduino ATmega Devices (Uno R3, Leonardo, Mega, etc).
MIT License
854 stars 204 forks source link

Where is the define of TaskControlBlock_t in task.h? #112

Closed thornbirdblue closed 2 years ago

thornbirdblue commented 2 years ago

Hi feilipu: I see the origin FreeRTOS code in https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/include/task.h. The define of TaskHandle_t is below:

struct tskTaskControlBlock; /* The old naming convention is used to prevent breaking kernel aware debuggers. */
typedef struct tskTaskControlBlock * TaskHandle_t;

But in your task.h,it is TaskControlBlock_t *. And I can't search the define of TaskControlBlock_t.

feilipu commented 2 years ago

It's an incomplete specification, which is ok if it is completed later. But the bug is that the actual specification is not updated to match the initial incomplete specification. I believe it is only an issue if you want to delete tasks though.

Will fix soonest. Thanks for noticing.