-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-95174: Add pthread stubs for WASI (GH-95234) #95234
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
bfbe629
to
6d44757
Compare
9418dce
to
83cdef3
Compare
🤖 New build scheduled with the buildbot fleet by @tiran for commit 45c87f0d043fbfd14b09140e070bfc3aa8724f27 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
The changeset breaks |
Neither WASI nor default builds with Emscripten have support for threading. While Emscripten comes with pthread stubs, WASI-SDK 16 and earlier are lacking stubs. Python initially used WASIX stubs to provide pthread stubs. This changeset introduces stubs modelled after Emscripten's stubs. Emscripten without pthread emulation now has ``sys.thread_info.name`` ``pthread-stubs``, too.
Co-authored-by: Brett Cannon <[email protected]>
45c87f0
to
503ef05
Compare
Thanks @tiran for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, @tiran, I could not cleanly backport this to |
Thanks @tiran for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, @tiran, I could not cleanly backport this to |
Co-authored-by: Brett Cannon <[email protected]>. (cherry picked from commit 0fe645d) Co-authored-by: Christian Heimes <[email protected]>
GH-95503 is a backport of this pull request to the 3.11 branch. |
Co-authored-by: Brett Cannon <[email protected]>. (cherry picked from commit 0fe645d) Co-authored-by: Christian Heimes <[email protected]>
This PR introduces an incorrect condition, please see my comment in the code. |
Could you please open a new ticket? Issues are easier to track than comments on closed PRs. |
|
Neither WASI nor default builds with Emscripten have support for
threading. While Emscripten comes with pthread stubs, WASI-SDK 16 and
earlier are lacking stubs.
Python initially used WASIX stubs to provide pthread stubs. This
changeset introduces stubs modelled after Emscripten's stubs.
Emscripten without pthread emulation now has
sys.thread_info.name
pthread-stubs
, too.