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

Function CreateThread

test/pthread/test_pthread_preallocates_workers.c:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void CreateThread(intptr_t idx) {
31 emscripten_outf("Main: Spawning thread %ld...", idx);
32 int rc = pthread_create(&threads[idx], NULL, thread_start, (void*)idx);
33 assert(rc == 0);
34}
35
36int main()
37{

Callers 1

mainFunction · 0.70

Calls 2

emscripten_outfFunction · 0.70
assertFunction · 0.50

Tested by

no test coverage detected