Skip to content

Add a validated Newlib reentrancy demo for ThreadX #73

Description

@fdesbiens

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions