6e6451ce96
...so that spawning and joining new threads works now and we no longer need a hardcoded -sPTHREAD_POOL_SIZE of pre-spawned threads (seeb84ef4d67e
"Adapt comphelper::ThreadPool to Emscripten's threading needs"; lets keep MAX_CONCURRENCY capped at 4, at least for now, though). This requires <167b08844d
> "Minimal support for Emscripten -sPROXY_TO_PTHREAD=1" and <c722a25630
> "Implement QWasmCursor::changeCursor for Emscripten PROXY_TO_PTHREAD case" (see TODOs there). Change-Id: I8cea827bd7786e3c9fd9401b4b2bef9d3ec00d5a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171758 Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de> Tested-by: Jenkins
8 lines
195 B
JavaScript
8 lines
195 B
JavaScript
'use strict';
|
|
|
|
if (!('preRun' in Module)) Module['preRun'] = [];
|
|
Module.preRun.push(function() {
|
|
ENV.MAX_CONCURRENCY = '4';
|
|
ENV.SAL_LOG = "+WARN"
|
|
});
|
|
Module.ignoreApplicationExit = true;
|