Skip to content

Interactive audio worklet futex test fails #22962

Closed
@cwoffenden

Description

@cwoffenden

With the latest Emscripten:

emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.73-git (299be0bbfbbadfa926cb69380f0fffa3703b26c7)

This interactive audio worklet futex test fails:

def test_audio_worklet_emscripten_futex_wake(self):

Running:

test/runner interactive.test_audio_worklet_emscripten_futex_wake

It fails to compile due to _emscripten_thread_supports_atomics_wait() being internal to the pthread implementation:

test_audio_worklet_emscripten_futex_wake (test_interactive.interactive) ... Opening in existing browser session.
/Volumes/Work/Tools/Emscripten/emscripten/main/test/webaudio/audioworklet_emscripten_futex_wake.cpp:17:28: error: use of undeclared identifier '_emscripten_thread_supports_atomics_wait'
   17 |   int supportsAtomicWait = _emscripten_thread_supports_atomics_wait();
      |                            ^
1 error generated.

Further, the comment here:

# Semantically the same as testing "!ENVIRONMENT_IS_WEB" in JS

Is incorrect since !ENVIRONMENT_IS_WEB is true for Audio Worklets but Atomics.wait is not supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions