eclipse-threadx / threadx

Eclipse ThreadX is an advanced real-time operating system (RTOS) designed specifically for deeply embedded applications.
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/threadx/index.md
MIT License
2.82k stars 774 forks source link

Why are you using void * for module instance and such in modules thread extention #283

Open amgross opened 1 year ago

amgross commented 1 year ago

For example here void * is used here: https://github.com/azure-rtos/threadx/blob/8ff9910ddc089e7af91e4089b26f225aba5d7eb7/ports_module/cortex_a35/gnu/inc/tx_port.h#L214 I know that the module struct wasn't declared yet, but it can be solved by struct forward declaration.

I think that using the void* instead of the struct pointer is misleading.

williamelamie commented 5 months ago

That is worth looking into... since it isn't a published API, it might be something that could be changed.