Hello,
Is it possible to preserve PThread.* functions, like "terminateAllThreads", on the Module object when using INCOMING_MODULE_JS_API and --closure?
I tried specifying "terminateAllThreads" or "_terminateAllThreads" or "PThread.terminateAllThreads" in -sINCOMING_MODULE_JS_API, however all of the PThread's properties seem to remain mangled.
P.S. If these functions aren't intended to be used by client code, then what would be a better way to force-shutdown pthread workers when one wants to dispose of the emscripten module instance? (It's using Embind, so exit() and friends don't seem to help.)
Thanks,
Maksim