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

Function wait_tasks

test/pthread/test_pthread_mandelbrot.cpp:383–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383void wait_tasks()
384{
385#ifndef SINGLETHREADED
386 // Wait for each task to finish.
387 for(;;)
388 {
389 int td = tasksDone;
390 if (td >= numTasks)
391 break;
392 emscripten_futex_wait(&tasksDone, td, 1);
393 emscripten_main_thread_process_queued_calls();
394 }
395#endif
396}
397
398void main_tick()
399{

Callers 1

main_tickFunction · 0.85

Tested by

no test coverage detected