emscripten-core/emscripten

Develop a fully multithreaded C runtime for pthreads.

Open

#3,495 创建于 2015年6月3日

在 GitHub 查看
 (23 评论) (0 反应) (0 负责人)C++ (3,519 fork)batch import
help wantedmultithreading

仓库指标

Star
 (27,361 star)
PR 合并指标
 (平均合并 19天 10小时) (30 天内合并 147 个 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.

贡献者指南