MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / ThreadMain

Function ThreadMain

test/pthread/test_pthread_hardware_concurrency.cpp:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19void *ThreadMain(void *arg) {
20 emscripten_outf("Thread %d finished, exit()ing", ((Test*)arg)->threadId);
21 pthread_exit(0);
22}
23
24void RunTest(int test) {
25 int NUM_THREADS = std::thread::hardware_concurrency();

Callers

nothing calls this directly

Calls 1

emscripten_outfFunction · 0.70

Tested by

no test coverage detected