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

Function checkThreadPool

test/other/test_pthread_reuse.c:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void checkThreadPool() {
27 int running = EM_ASM_INT(return Object.keys(PThread.pthreads).length);
28 int unused = EM_ASM_INT(return PThread.unusedWorkers.length);
29 printf("running=%d unused=%d\n", running, unused);
30 assert(running == 0);
31 assert(unused == 1);
32}
33
34int main() {
35 printf("in main\n");

Callers 1

mainFunction · 0.85

Calls 3

printfFunction · 0.85
keysMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected