Run once with libevent!

This commit is contained in:
Willem Toorop 2015-05-08 13:12:06 +02:00
parent 393b847668
commit 01d4275336
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ getdns_libevent_run(getdns_eventloop *loop)
static void static void
getdns_libevent_run_once(getdns_eventloop *loop, int blocking) getdns_libevent_run_once(getdns_eventloop *loop, int blocking)
{ {
/* Is this possible with libevent? */ (void) event_base_loop(((getdns_libevent *)loop)->base,
EVLOOP_ONCE | (blocking ? EVLOOP_NONBLOCK : 0));
} }
static void static void