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

Function main

test/pthread/main_thread_join.c:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44int main() {
45 thread = CreateThread();
46#ifdef TRY_JOIN
47 emscripten_set_main_loop(loop, 0, 0);
48#else
49 int status;
50 // This should fail on the main thread.
51 puts("trying to block...");
52 pthread_join(thread, (void**)&status);
53 puts("blocked ok.");
54 return 0;
55#endif // TRY_JOIN
56}
57

Callers

nothing calls this directly

Calls 2

putsFunction · 0.85
CreateThreadFunction · 0.70

Tested by

no test coverage detected