-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[AUDIO_WORKLET] Fix spinlocks for audio worklets (and add tests) #22995
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
b70f88c
to
81bcaa2
Compare
cf23f0e
to
aa78b84
Compare
cbd6be7
to
2dcfb14
Compare
@sbc100 this looks like it's good to go? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update the PR title? Perhaps something like "Fix testing of emscripten locks in audio worklets".
Perhaps you could add to the description why the existing test wasn't actually working?
Sure this change LGTM if we split out or remove the API change (which makes this a test-only change). Just to be clear when you say "fixed something broken" you mean the it fixes the testing.. not an actual fix in emscripten itself? Or am I missunderstanding? |
2dcfb14
to
27cf421
Compare
27cf421
to
5ac384b
Compare
Closed to recreate a new PR (since it had too many changes to keep track and undo, and GitHub closed it for me once I reset Git to the start of the changes). New PR in #23729. |
…#23729) - spinlocks fixed so they work in audio worklets - adds tests for various spinlock cases - test converted to C-only (still in a C++ file for now, see below) This was unmerged last year (#22995), visited again now the browser tests are running with audio. It's been moved over to `btest_exit()` and verified that it runs (and will only exit after all tests have run or asserted). The only change I'd make is to rename the original test file, which has grown beyond its original use. A `git mv` command won't survive multiple commits, so I want to either leave it until last, live with the resulting deletion, or rename as a separate PR. Fixes: #22962
Fix for #22962 and adds tests:
test for atomic wait exposed as a public function(The
git mv
lost the old to new mapping at some point)