Browse Source

axe linux aio

tags/rel-4.33
Marc Alexander Lehmann 9 months ago
parent
commit
6475e13882
3 changed files with 5 additions and 5 deletions
  1. +1
    -0
      Changes
  2. +2
    -2
      ev.c
  3. +2
    -3
      ev_linuxaio.c

+ 1
- 0
Changes View File

@@ -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


+ 2
- 2
ev.c View File

@@ -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


+ 2
- 3
ev_linuxaio.c View File

@@ -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