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

Function mymain

test/browser/gl_in_pthread.c:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void *mymain(void* arg)
89{
90 for(int i = 0; i < 3; ++i)
91 {
92 printf("Creating thread %d\n", i+1);
93 CreateThread();
94 printf("Waiting for thread to finish.\n");
95 pthread_join(thread, 0);
96 thread = 0;
97 }
98 printf("All done!\n");
99 return 0;
100}
101
102// Tests that the OffscreenCanvas context can travel from main thread -> thread 1 -> thread 2
103// #define TEST_CHAINED_WEBGL_CONTEXT_PASSING

Callers 1

mainFunction · 0.85

Calls 2

printfFunction · 0.85
CreateThreadFunction · 0.70

Tested by

no test coverage detected