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

Function CreateThread

test/core/pthread/create.c:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28pthread_t thread[NUM_THREADS];
29
30void CreateThread(long i) {
31 int rc = pthread_create(&thread[i], NULL, ThreadMain, (void*)i);
32 assert(rc == 0);
33}
34
35void main_iter() {
36 static int main_adds = 0;

Callers 1

mainFunction · 0.70

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected