emscripten-core/emscripten

Develop a fully multithreaded C runtime for pthreads.

開放

#3,495 建立於 2015年6月3日

 (23 則留言) (0 個反應) (0 位負責人)C++ (3,519 個分叉)batch import
help wantedmultithreading

倉庫指標

星標
 (27,361 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南