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

Function CreateThread

test/pthread/main_thread_join.c:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37pthread_t CreateThread() {
38 pthread_t ret;
39 int rc = pthread_create(&ret, NULL, ThreadMain, (void*)0);
40 assert(rc == 0);
41 return ret;
42}
43
44int main() {
45 thread = CreateThread();

Callers 1

mainFunction · 0.70

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected