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

Function CreateThread

test/core/pthread/exceptions.cpp:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42pthread_t thread[NUM_THREADS];
43
44void CreateThread(int i)
45{
46 int rc = pthread_create(&thread[i], nullptr, ThreadMain, (void*)(intptr_t)i);
47 assert(rc == 0);
48}
49
50void loop() {
51 static int main_adds = 0;

Callers 1

mainFunction · 0.70

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected