217
225
/* set up the pipe used to add new thds to the event pool */
218
226
if (init_pipe(thd_add_pipe))
223
231
/* set up the pipe used to kill thds in the event queue */
224
232
if (init_pipe(thd_kill_pipe))
231
239
event_set(&thd_add_event, thd_add_pipe[0], EV_READ|EV_PERSIST,
232
240
libevent_add_thd_callback, NULL);