Skip to content

newlib: libc: create a generic machine/_threads.h #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

cfriedt
Copy link
Member

@cfriedt cfriedt commented Mar 2, 2024

The machine/_threads.h header defines specific types for C11 threads such as cnt_t, mtx_t, thrd_t, tss_t, and once_flag. However, the only definitions that currently exist in newlib are for rtems.

Create a relatively generic version of this such that most types can be represented as either integral values or pointers.

Machines or systems that require further specialization may do something similar to what was done for rtems.

The machine/_threads.h header defines specific types for C11
threads such as cnt_t, mtx_t, thrd_t, tss_t, and once_flag.
However, the only definitions that currently exist in newlib are
for rtems.

Create a relatively generic version of this such that most types
can be represented as either integral values or pointers.

Machines or systems that require further specialization may do
something similar to what was done for rtems.

Signed-off-by: Christopher Friedt <[email protected]>
@stephanosio stephanosio merged commit fc94285 into zephyrproject-rtos:zephyr-newlib-3.3.0 Mar 27, 2024
@cfriedt cfriedt deleted the enable-std-thread-iso-only branch March 27, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants