… | |
… | |
567 | { |
567 | { |
568 | epoll_destroy (EV_A); |
568 | epoll_destroy (EV_A); |
569 | return 0; |
569 | return 0; |
570 | } |
570 | } |
571 | |
571 | |
572 | ev_io_init (EV_A_ &linuxaio_epoll_w, linuxaio_epoll_cb, backend_fd, EV_READ); |
572 | ev_io_init (&linuxaio_epoll_w, linuxaio_epoll_cb, backend_fd, EV_READ); |
573 | ev_set_priority (&linuxaio_epoll_w, EV_MAXPRI); |
573 | ev_set_priority (&linuxaio_epoll_w, EV_MAXPRI); |
574 | ev_io_start (EV_A_ &linuxaio_epoll_w); |
574 | ev_io_start (EV_A_ &linuxaio_epoll_w); |
575 | ev_unref (EV_A); /* watcher should not keep loop alive */ |
575 | ev_unref (EV_A); /* watcher should not keep loop alive */ |
576 | |
576 | |
577 | backend_modify = linuxaio_modify; |
577 | backend_modify = linuxaio_modify; |