… | |
… | |
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 | } |