Browse Source

*** empty log message ***

master rel-3.31
Marc Alexander Lehmann 13 years ago
parent
commit
abbb7e2d99
  1. 5
      Changes
  2. 2
      configure.ac
  3. 32
      ev_poll.c

5
Changes

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

2
configure.ac

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

32
ev_poll.c

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