… | |
… | |
1511 | { |
1511 | { |
1512 | postfork = 1; /* must be in line with ev_default_fork */ |
1512 | postfork = 1; /* must be in line with ev_default_fork */ |
1513 | } |
1513 | } |
1514 | |
1514 | |
1515 | #if EV_VERIFY |
1515 | #if EV_VERIFY |
1516 | void noinline |
1516 | static void noinline |
1517 | verify_watcher (EV_P_ W w) |
1517 | verify_watcher (EV_P_ W w) |
1518 | { |
1518 | { |
1519 | assert (("watcher has invalid priority", ABSPRI (w) >= 0 && ABSPRI (w) < NUMPRI)); |
1519 | assert (("watcher has invalid priority", ABSPRI (w) >= 0 && ABSPRI (w) < NUMPRI)); |
1520 | |
1520 | |
1521 | if (w->pending) |
1521 | if (w->pending) |
… | |
… | |
2982 | once_cb (EV_P_ struct ev_once *once, int revents) |
2982 | once_cb (EV_P_ struct ev_once *once, int revents) |
2983 | { |
2983 | { |
2984 | void (*cb)(int revents, void *arg) = once->cb; |
2984 | void (*cb)(int revents, void *arg) = once->cb; |
2985 | void *arg = once->arg; |
2985 | void *arg = once->arg; |
2986 | |
2986 | |
2987 | ev_io_stop (EV_A_ &once->io); |
2987 | ev_io_stop (EV_A_ &once->io); |
2988 | ev_timer_stop (EV_A_ &once->to); |
2988 | ev_timer_stop (EV_A_ &once->to); |
2989 | ev_free (once); |
2989 | ev_free (once); |
2990 | |
2990 | |
2991 | cb (revents, arg); |
2991 | cb (revents, arg); |
2992 | } |
2992 | } |