emscripten-core / emscripten-core/emscripten

set -s EMULATE_FUNCTION_POINTER_CASTS=1 and the pthread will not work

Open
#13,543 3 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

CMakefile.txt:

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s EMULATE_FUNCTION_POINTER_CASTS=1 -s USE_PTHREADS=1 -s PTHREAD_POOL_SIZE=15")

then in the code, pthread create not work, chrome throw
"clouddesktop-web.html:1246 pthread sent an error! http://127.0.0.1:8000/clouddesktop-web.worker.js:175: Uncaught TypeError: Cannot convert 7507336 to a BigInt"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.