| 47 | } |
| 48 | |
| 49 | int main() |
| 50 | { |
| 51 | // Cause a one second delay between main() and pthread start that might have a |
| 52 | // chance to drift the wallclocks on emscripten_get_now(). |
| 53 | busy_sleep(1000); |
| 54 | |
| 55 | pthread_t thread; |
| 56 | pthread_create(&thread, NULL, thread_main, NULL); |
| 57 | wait(&threadStarted); |
| 58 | mainThreadTime = emscripten_get_now(); |
| 59 | wake(&timeReceived); |
| 60 | |
| 61 | emscripten_exit_with_live_runtime(); |
| 62 | } |
nothing calls this directly
no test coverage detected