-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Description
For using in EMSCRIPTEN_FETCH_SYNCHRONOUS, we should link with: USE_PTHREADS, PROXY_TO_PTHREAD, ALLOW_MEMORY_GROWTH.
My main thread do the following:
- GL rendering (that can be run only in the main thread as far as I understand).
- calling to emscripten_fetch with EMSCRIPTEN_FETCH_SYNCHRONOUS.
The result:
emscripten_fetch successed.
Rendering is failed in its initialization.
The reason of failing, I supposed, it because that the rendering is pass to Worker thread due to the above linker flags.
so, what should I do in such case when the main thread do a rendering and others pthread calling
Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.4 (14cd48e)
clang version 15.0.0 (https://github.com/llvm/llvm-project ce5588fdf478b6af724977c11a405685cebc3d26)
Target: wasm32-unknown-emscripten
Thread model: posix
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels