Skip to content

Simplify emscripten_futex_wait after recent changes. NFC#26693

Merged
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:simplify_futex_wait
Apr 16, 2026
Merged

Simplify emscripten_futex_wait after recent changes. NFC#26693
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:simplify_futex_wait

Conversation

@sbc100
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 commented Apr 15, 2026

As a followup to #26691 and #26659 we can simplify emscripten_futex_wait even further removing all references to _emscripten_process_dlopen_queue.

Instead we move the call to emscripten_yield() until after the atomic.wait operation (or the skipping of it). emscripten_yield() then takes care of calling _emscripten_process_dlopen_queue as needed.

@sbc100 sbc100 changed the title Simplify emscripten_futex_wait after. NFC Simplify emscripten_futex_wait after recent changes. NFC Apr 15, 2026
@sbc100 sbc100 force-pushed the simplify_futex_wait branch 3 times, most recently from 3c0d0a7 to 7c99bc1 Compare April 16, 2026 00:08
@sbc100 sbc100 requested a review from tlively April 16, 2026 00:08
Comment thread system/lib/libc/musl/src/signal/setitimer.c Outdated
@sbc100 sbc100 force-pushed the simplify_futex_wait branch from 7c99bc1 to 76c8f2b Compare April 16, 2026 00:40
@sbc100 sbc100 force-pushed the simplify_futex_wait branch from 76c8f2b to 9e590d2 Compare April 16, 2026 00:57
@sbc100 sbc100 enabled auto-merge (squash) April 16, 2026 00:59
As a followup to emscripten-core#26691 and emscripten-core#26659 we can simplify
`emscripten_futex_wait` even further removing all references to
`_emscripten_process_dlopen_queue`.

Instead we move the call to emscripten_yield() until after the
atomic.wait operation (or the skipping of it).  `emscripten_yield()`
then takes care of calling `_emscripten_process_dlopen_queue` as needed.
@sbc100 sbc100 force-pushed the simplify_futex_wait branch from 9e590d2 to 6de2e37 Compare April 16, 2026 03:02
@sbc100 sbc100 merged commit 88e0002 into emscripten-core:main Apr 16, 2026
27 checks passed
@sbc100 sbc100 deleted the simplify_futex_wait branch April 16, 2026 03:59
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