hammer2_thr_wait
void hammer2_thr_wait(hammer2_thread_t *thr, uint32_t flags);
hammer2_thr_wait(thr, HAMMER2_THREAD_STOPPED);
hammer2_thr_wait(thr, HAMMER2_THREAD_FROZEN);
void hammer2_thr_wait(hammer2_thread_t *thr, uint32_t flags);
hammer2_thr_wait(thr, HAMMER2_THREAD_FROZEN);