| 42 | } |
| 43 | |
| 44 | int main() { |
| 45 | thread = CreateThread(); |
| 46 | #ifdef TRY_JOIN |
| 47 | emscripten_set_main_loop(loop, 0, 0); |
| 48 | #else |
| 49 | int status; |
| 50 | // This should fail on the main thread. |
| 51 | puts("trying to block..."); |
| 52 | pthread_join(thread, (void**)&status); |
| 53 | puts("blocked ok."); |
| 54 | return 0; |
| 55 | #endif // TRY_JOIN |
| 56 | } |
| 57 |
nothing calls this directly
no test coverage detected