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

Enable C11 threads on top of pthreads? #392

Open
TerrorJack opened this issue Feb 8, 2023 · 4 comments
Open

Enable C11 threads on top of pthreads? #392

TerrorJack opened this issue Feb 8, 2023 · 4 comments

Comments

@TerrorJack
Copy link
Contributor

It seems the C11 threads symbols are pretty incomplete in the current pthreads build (e.g. there isn't even thrd_create). Is this an oversight, or is there some technical difficulty to enable these functions?

@sbc100
Copy link
Member

sbc100 commented Feb 8, 2023

I think we just haven't gotten around to adding them yet. We've been added thread source piecemeal. If you'd like to create a PR to add the C11 API, I doubt it would be controversial.

@sbc100
Copy link
Member

sbc100 commented Feb 8, 2023

(Out of interest, have you seen software in the wild using these APIs? They were added to emscripten for completeness but I don't know for sure if anyone is actually using them).

@abrown
Copy link
Collaborator

abrown commented Feb 8, 2023

Any help on this is appreciated!

@TerrorJack
Copy link
Contributor Author

Yup, I'll take a look and try to offer a patch to add them.

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

No branches or pull requests

3 participants