… | |
… | |
424 | /* ignored */; |
424 | /* ignored */; |
425 | else |
425 | else |
426 | ev_syserr ("(libev) linuxaio io_getevents"); |
426 | ev_syserr ("(libev) linuxaio io_getevents"); |
427 | else if (res) |
427 | else if (res) |
428 | { |
428 | { |
429 | /* at least one event received, handle it and any remaining ones in the ring buffer */ |
429 | /* at least one event available, handle it and any remaining ones in the ring buffer */ |
430 | linuxaio_parse_events (EV_A_ ioev, res); |
430 | linuxaio_parse_events (EV_A_ ioev, res); |
431 | linuxaio_get_events_from_ring (EV_A); |
431 | linuxaio_get_events_from_ring (EV_A); |
432 | } |
432 | } |
433 | } |
433 | } |
434 | |
434 | |
435 | static int |
435 | inline_size |
|
|
436 | int |
436 | linuxaio_io_setup (EV_P) |
437 | linuxaio_io_setup (EV_P) |
437 | { |
438 | { |
438 | linuxaio_ctx = 0; |
439 | linuxaio_ctx = 0; |
439 | return evsys_io_setup (linuxaio_nr_events (EV_A), &linuxaio_ctx); |
440 | return evsys_io_setup (linuxaio_nr_events (EV_A), &linuxaio_ctx); |
440 | } |
441 | } |