threadx icon indicating copy to clipboard operation
threadx copied to clipboard

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

Open amgross opened this issue 2 years ago • 1 comments

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.

amgross avatar Jul 12 '23 05:07 amgross

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

williamelamie avatar Feb 05 '24 22:02 williamelamie