| 20 | } |
| 21 | |
| 22 | static void *thread_start(void *arg) { |
| 23 | long n = (long)arg; |
| 24 | emscripten_outf("Thread: Computing fib(%ld)...", n); |
| 25 | long fibn = fib(n); |
| 26 | emscripten_outf("Thread: Computation done. fib(%ld) = %ld", n, fibn); |
| 27 | pthread_exit((void*)fibn); |
| 28 | } |
| 29 | |
| 30 | int main() { |
| 31 | // Test existence of nanosleep(), https://github.com/emscripten-core/emscripten/issues/4578 |
nothing calls this directly
no test coverage detected