mirror of https://github.com/getdnsapi/getdns.git
Run once with libevent!
This commit is contained in:
parent
393b847668
commit
01d4275336
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue