Browse Source

axe linux aio

master
Marc Alexander Lehmann 2 years ago
parent
commit
6475e13882
  1. 1
      Changes
  2. 4
      ev.c
  3. 5
      ev_linuxaio.c

1
Changes

@ -9,6 +9,7 @@ TODO: document EV_TSTAMP_T
also used (found via cpan tester service).
- support a lot more "uncommon" compile time configurations,
such as ev_embed enabled but ev_timer disabled.
- the linux aio backend is no longer compiled in by default.
4.31 Fri Dec 20 21:58:29 CET 2019
- handle backends with minimum wait time a bit better by not

4
ev.c

@ -119,7 +119,7 @@
# if HAVE_LINUX_AIO_ABI_H
# ifndef EV_USE_LINUXAIO
# define EV_USE_LINUXAIO EV_FEATURE_BACKENDS
# define EV_USE_LINUXAIO 0 /* was: EV_FEATURE_BACKENDS, always off by default */
# endif
# else
# undef EV_USE_LINUXAIO
@ -346,7 +346,7 @@
#ifndef EV_USE_LINUXAIO
# if __linux /* libev currently assumes linux/aio_abi.h is always available on linux */
# define EV_USE_LINUXAIO 1
# define EV_USE_LINUXAIO 0 /* was: 1, always off by default */
# else
# define EV_USE_LINUXAIO 0
# endif

5
ev_linuxaio.c

@ -270,9 +270,8 @@ linuxaio_modify (EV_P_ int fd, int oev, int nev)
++anfd->egen;
}
iocb->io.aio_buf =
(nev & EV_READ ? POLLIN : 0)
| (nev & EV_WRITE ? POLLOUT : 0);
iocb->io.aio_buf = (nev & EV_READ ? POLLIN : 0)
| (nev & EV_WRITE ? POLLOUT : 0);
if (nev)
{

Loading…
Cancel
Save