… | |
… | |
51 | |
51 | |
52 | # if HAVE_POLL && HAVE_POLL_H && !defined (EV_USE_POLL) |
52 | # if HAVE_POLL && HAVE_POLL_H && !defined (EV_USE_POLL) |
53 | # define EV_USE_POLL 1 |
53 | # define EV_USE_POLL 1 |
54 | # endif |
54 | # endif |
55 | |
55 | |
56 | # if HAVE_EPOLL && HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H && !defined (EV_USE_EPOLL) |
56 | # if HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H && !defined (EV_USE_EPOLL) |
57 | # define EV_USE_EPOLL 1 |
57 | # define EV_USE_EPOLL 1 |
58 | # endif |
58 | # endif |
59 | |
59 | |
60 | # if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE) |
60 | # if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE) |
61 | # define EV_USE_KQUEUE 1 |
61 | # define EV_USE_KQUEUE 1 |
… | |
… | |
1439 | |
1439 | |
1440 | void |
1440 | void |
1441 | ev_idle_stop (EV_P_ struct ev_idle *w) |
1441 | ev_idle_stop (EV_P_ struct ev_idle *w) |
1442 | { |
1442 | { |
1443 | ev_clear_pending (EV_A_ (W)w); |
1443 | ev_clear_pending (EV_A_ (W)w); |
1444 | if (ev_is_active (w)) |
1444 | if (!ev_is_active (w)) |
1445 | return; |
1445 | return; |
1446 | |
1446 | |
1447 | idles [((W)w)->active - 1] = idles [--idlecnt]; |
1447 | idles [((W)w)->active - 1] = idles [--idlecnt]; |
1448 | ev_stop (EV_A_ (W)w); |
1448 | ev_stop (EV_A_ (W)w); |
1449 | } |
1449 | } |