Skip to content

Enable pthread mutex/cond/rw_lock to be used in Wasm Workers#26510

Open
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:pthread_primitives_wasm_workers
Open

Enable pthread mutex/cond/rw_lock to be used in Wasm Workers#26510
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:pthread_primitives_wasm_workers

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Mar 20, 2026

By using the CURRENT_THREAD_ID abstraction that already exists in musl these primitives "just work" for Wasm Workers now.

This includes a partial revert of #26345.

@sbc100 sbc100 force-pushed the pthread_primitives_wasm_workers branch 2 times, most recently from 2555895 to 5b71588 Compare March 20, 2026 22:21
@sbc100
Copy link
Collaborator Author

sbc100 commented Mar 20, 2026

Actually this doesn't quite work because of the self->robust_list in the pthread lock API.

By using the `CURRENT_THREAD_ID` abstraction that already exists in
musl these primitives "just work" for Wasm Workers now.

This includes a partial revert of emscripten-core#26345.
@sbc100 sbc100 force-pushed the pthread_primitives_wasm_workers branch from 5b71588 to da2bcaa Compare March 20, 2026 23:06
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.

1 participant