1 #include <event2/event.h>
4 #include <tid_internal.h>
8 /* Allocate and set up the event base, return a pointer
9 * to the new event_base or NULL on failure.
10 * Does not currently enable thread-safe mode. */
11 struct event_base *tr_event_loop_init(void)
13 struct event_base *base=NULL;
15 base=event_base_new();
19 /* run the loop, does not normally return */
20 int tr_event_loop_run(struct event_base *base)
22 return event_base_dispatch(base);