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

Function CreateThread

test/pthread/test_large_pthread_allocation.c:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void CreateThread(intptr_t idx) {
23 int rc = pthread_create(&threads[idx], NULL, thread_start, (void*)idx);
24 assert(rc == 0);
25}
26
27void JoinThread(int idx) {
28 int rc = pthread_join(threads[idx], NULL);

Callers 1

mainFunction · 0.70

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected