emscripten-core/emscripten

Develop a fully multithreaded C runtime for pthreads.

Open

#3495 aperta il 3 giu 2015

Vedi su GitHub
 (23 commenti) (0 reazioni) (0 assegnatari)C++ (3519 fork)batch import
help wantedmultithreading

Metriche repository

Star
 (27.361 star)
Metriche merge PR
 (Merge medio 19g 10h) (147 PR mergiate in 30 g)

Descrizione

Several functions in the C runtime are currently effectively singlethreaded, because they carry global process specific state in JS code that can't be thread local. Therefore calls to these runtime functions from pthreads are proxied to the main thread. Migrating to use more musl can avoid this issue. Also, investigate creating a fully asm.js -based virtual filesystem to be used when targeting pthreads, so that C file I/O can be naturally multithreaded as well.

Guida contributor