You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add opt-in pointer context APIs for threads and timers #771
Thread and timer callbacks accept ULONG input, which remains 32 bits on 64-bit ports. Passing a context pointer can truncate it before the callback runs, as reported in #466. The earlier discussion in #413 also raised the need to preserve existing callers.
I propose new, explicitly named creation APIs with VOID * input and matching callbacks. The current ULONG APIs would remain available, and this addition would leave queue message sizing and other ULONG semantics unchanged. The design needs to cover kernel and module paths and any control-block layout impact.
I would target Q4 2026 for the opt-in APIs, with regression coverage on 32-bit and 64-bit ports and matching API documentation. The API names and internal representation remain design decisions.
Merged #819 into dev as 227586c7. Define TX_ENABLE_POINTER_CONTEXT to use tx_thread_create_ptr and tx_timer_create_ptr in ThreadX, SMP, and loadable modules. Use the same setting across the kernel, application, and module builds. All nine CI workflows passed.
Activity
Added opt-in pointer callback mode and creation APIs (eclipse-threadx…
Added opt-in pointer callback mode and pointer creation APIs (eclipse…
Enabled pointer-context creation in loadable modules
Added opt-in pointer callback mode and pointer creation APIs
fdesbiens commentedon Nov 26, 2026
Merged #819 into
devas227586c7. DefineTX_ENABLE_POINTER_CONTEXTto usetx_thread_create_ptrandtx_timer_create_ptrin ThreadX, SMP, and loadable modules. Use the same setting across the kernel, application, and module builds. All nine CI workflows passed.