ThreadX issue eclipse-threadx/threadx#448 asks for a practical way to use multithreaded Newlib with ThreadX. SampleX has a board example with Newlib syscall stubs, but no example that demonstrates Newlib locking and per-thread reentrancy together.
I would welcome help building and validating a single-core demo with a named board and Newlib toolchain configuration. It should show the required retargetable lock hooks, a separate Newlib reentrancy context for each thread, initialization and cleanup across the thread lifecycle, and context selection when threads switch. It should state how the Newlib heap is kept separate from ThreadX memory, avoid Newlib calls that require mutexes from interrupts, and exercise concurrent library calls under preemption. Please include CMake/Ninja build instructions, expected results, and hardware results where available. The example should identify its supported configuration rather than imply that a global _impure_ptr approach works on SMP.
The matching manual guidance is tracked separately in the ThreadX documentation repository. Related to eclipse-threadx/threadx#448.
ThreadX issue eclipse-threadx/threadx#448 asks for a practical way to use multithreaded Newlib with ThreadX. SampleX has a board example with Newlib syscall stubs, but no example that demonstrates Newlib locking and per-thread reentrancy together.
I would welcome help building and validating a single-core demo with a named board and Newlib toolchain configuration. It should show the required retargetable lock hooks, a separate Newlib reentrancy context for each thread, initialization and cleanup across the thread lifecycle, and context selection when threads switch. It should state how the Newlib heap is kept separate from ThreadX memory, avoid Newlib calls that require mutexes from interrupts, and exercise concurrent library calls under preemption. Please include CMake/Ninja build instructions, expected results, and hardware results where available. The example should identify its supported configuration rather than imply that a global
_impure_ptrapproach works on SMP.The matching manual guidance is tracked separately in the ThreadX documentation repository. Related to eclipse-threadx/threadx#448.