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

Function thread_start

test/pthread/test_pthread_join.c:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22static void *thread_start(void *arg) {
23 long n = (long)arg;
24 emscripten_outf("Thread: Computing fib(%ld)...", n);
25 long fibn = fib(n);
26 emscripten_outf("Thread: Computation done. fib(%ld) = %ld", n, fibn);
27 pthread_exit((void*)fibn);
28}
29
30int main() {
31 // Test existence of nanosleep(), https://github.com/emscripten-core/emscripten/issues/4578

Callers

nothing calls this directly

Calls 2

emscripten_outfFunction · 0.70
fibFunction · 0.70

Tested by

no test coverage detected