| 16 | _Atomic bool done_cleanup = false; |
| 17 | |
| 18 | void cleanup_handler(void *arg) { |
| 19 | long a = (long)arg; |
| 20 | emscripten_outf("Called clean-up handler with arg %ld", a); |
| 21 | assert(a == 42); |
| 22 | done_cleanup = true; |
| 23 | } |
| 24 | |
| 25 | void *thread_start(void *arg) { |
| 26 | pthread_cleanup_push(cleanup_handler, (void*)42); |
nothing calls this directly
no test coverage detected