| 76 | } |
| 77 | |
| 78 | void PollThreadExit(void *arg) |
| 79 | { |
| 80 | if (!threadRunning) |
| 81 | { |
| 82 | printf("Test finished.\n"); |
| 83 | #ifdef REPORT_RESULT |
| 84 | REPORT_RESULT(0); |
| 85 | #endif |
| 86 | } else { |
| 87 | emscripten_async_call(PollThreadExit, 0, 100); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | int main() |
| 92 | { |