X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/0b7b062fb0b1c4f1ab22a52bd91f3c86195a084e..93de14fb2ac9996d3330d1fce388e75b3b2fb91a:/event.c?ds=inline diff --git a/event.c b/event.c index 520e336..5ed8bc5 100644 --- a/event.c +++ b/event.c @@ -248,6 +248,20 @@ int event_del (struct event *ev) return 0; } +void event_active (struct event *ev, int res, short ncalls) +{ + dLOOPev; + + if (res & EV_TIMEOUT) + ev_feed_event (EV_A_ &ev->to, res & EV_TIMEOUT); + + if (res & EV_SIGNAL) + ev_feed_event (EV_A_ &ev->iosig.sig, res & EV_SIGNAL); + + if (res & (EV_READ | EV_WRITE)) + ev_feed_event (EV_A_ &ev->iosig.io, res & (EV_READ | EV_WRITE)); +} + int event_pending (struct event *ev, short events, struct timeval *tv) { short revents = 0;