Skip to content
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

libgcc: implement gthreads in terms of C11 threads #27

Conversation

cfriedt
Copy link
Member

@cfriedt cfriedt commented Mar 2, 2024

Provide the gthr.h API implementation in terms of the ISO C11 threads API.

Add support for --enable-libstdcxx-time=c11 via the ISO C11 threads.h API function thrd_sleep().

shared_ptr was being used inside of a _GLIBCXX_THREAD_ABI_COMPAT
block. Include the header which defines that class.

Signed-off-by: Christopher Friedt <[email protected]>
Provide the gthr.h API implementation in terms of the ISO C11
threads API.

Signed-off-by: Christopher Friedt <[email protected]>
Add support for --enable-libstdcxx-time=c11 via the ISO C11
threads.h API function thrd_sleep().

Signed-off-by: Christopher Friedt <[email protected]>
@cfriedt cfriedt force-pushed the enable-std-thread-iso-only branch from 7205e2d to 779b99d Compare March 8, 2024 15:34
Copy link
Member

@stephanosio stephanosio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not seeing anything obviously wrong with it.

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