| 5157 | } worker_stack_run_t; |
| 5158 | |
| 5159 | static void *worker_stack_thread(void *opaque) { |
| 5160 | worker_stack_run_t *run = opaque; |
| 5161 | run->result = run->check(run->arg); |
| 5162 | return NULL; |
| 5163 | } |
| 5164 | |
| 5165 | /* Runs check(arg) on a thread with the worker stack size; returns its result. */ |
| 5166 | static int run_on_worker_stack_thread(worker_stack_run_t *run) { |