Description
In a threaded .NET runtime, Emscripten prints this to the JS console even if C# user code doesn't do any threading
Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread
This comes from https://github.com/emscripten-core/emscripten/blob/678d7d8881a810d14f52bb3b7e72a8c337b571ba/src/library_pthread.js#L785
which gets called from various pthread primitives that the runtime calls, such as pthread_join
or pthread_cond_timedwait
.
We should try setting -s ALLOW_BLOCKING_ON_MAIN_THREAD=false
and investigate whether the blocking operations are really necessary. If fixing the blocking is infeasible, we should consider overriding Module.PThread.emscripten_check_blocking_allowed
to not nag.
Metadata
Metadata
Assignees
Type
Projects
Status