Browse Source

*** empty log message ***

master rel-3.31
Marc Alexander Lehmann 12 years ago
parent
commit
abbb7e2d99
3 changed files with 19 additions and 20 deletions
  1. +2
    -3
      Changes
  2. +1
    -1
      configure.ac
  3. +16
    -16
      ev_poll.c

+ 2
- 3
Changes View File

@ -1,8 +1,7 @@
Revision history for libev, a high-performance and full-featured event loop.
3.3 Wed Apr 16 20:45:04 CEST 2008
- added last minute fix for ev_poll.c by Brandon Black not
included in original 3.3 tarball.
3.31 Wed Apr 16 20:45:04 CEST 2008
- added last minute fix for ev_poll.c by Brandon Black.
3.3 Wed Apr 16 19:04:10 CEST 2008
- event_base_loopexit should return 0 on success


+ 1
- 1
configure.ac View File

@ -1,7 +1,7 @@
AC_INIT
AC_CONFIG_SRCDIR([ev_epoll.c])
AM_INIT_AUTOMAKE(libev,3.3)
AM_INIT_AUTOMAKE(libev,3.31)
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE


+ 16
- 16
ev_poll.c View File

@ -98,22 +98,22 @@ poll_poll (EV_P_ ev_tstamp timeout)
else if (errno != EINTR)
syserr ("(libev) poll");
}
for (p = polls; res; ++p)
if (expect_false (p->revents)) /* this expect is debatable */
{
--res;
if (expect_false (p->revents & POLLNVAL))
fd_kill (EV_A_ p->fd);
else
fd_event (
EV_A_
p->fd,
(p->revents & (POLLOUT | POLLERR | POLLHUP) ? EV_WRITE : 0)
| (p->revents & (POLLIN | POLLERR | POLLHUP) ? EV_READ : 0)
);
}
else
for (p = polls; res; ++p)
if (expect_false (p->revents)) /* this expect is debatable */
{
--res;
if (expect_false (p->revents & POLLNVAL))
fd_kill (EV_A_ p->fd);
else
fd_event (
EV_A_
p->fd,
(p->revents & (POLLOUT | POLLERR | POLLHUP) ? EV_WRITE : 0)
| (p->revents & (POLLIN | POLLERR | POLLHUP) ? EV_READ : 0)
);
}
}
int inline_size


Loading…
Cancel
Save