/* get list of interfaces */ static void *ifaces_r(void *data) { struct thr_comm *th = (struct thr_comm *) data; /* this could take a long time (usually not) */ iflist_update(); th->thr_ifcb(th->thr_data, iflist); new_free(&th); THR_EXIT(); }
static void exit_thread(int t_no, int do_lock) { if (do_lock) THR_MTX_LOCK(tc_mutex); while (dead_thread_no >= 0) THR_COND_WAIT(tc_cond, tc_mutex); dead_thread_no = t_no; THR_COND_BCAST(tc_cond); THR_MTX_UNLOCK(tc_mutex); THR_EXIT(NULL); }