Skip to content

Move sleep slicing from musl's __wait to the lower level emscripten_futex_wait. NFC#26471

Open
sbc100 wants to merge 3 commits intoemscripten-core:mainfrom
sbc100:handle_pthread_cancel_during_futext_wait
Open

Move sleep slicing from musl's __wait to the lower level emscripten_futex_wait. NFC#26471
sbc100 wants to merge 3 commits intoemscripten-core:mainfrom
sbc100:handle_pthread_cancel_during_futext_wait

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Mar 17, 2026

This reduces the number of places we need to breaking up our wait operation. It also means that other users the emscripten_futex_wait API don't break pthread proxying or async cancellation.

This change removes one more place where we were erroneously calling pthread_self() in the Wasm Workers build of libc, so this change also makes the code less broken in the Wasm Worker case.

Needed as part of #26487

Loading
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.

2 participants