abort();
}
/* run the events */
+ evmgr_prepare_run(evmgr);
pthread_mutex_unlock(&mutex);
sig_monitor(0, (void(*)(int,void*))evmgr_job_run, evmgr);
pthread_mutex_lock(&mutex);
t = t->next;
}
- /* wait the threads */
+ /* wake up the threads */
+ evloop_wakeup();
pthread_cond_broadcast(&cond);
/* leave */