Browse Source

*** empty log message ***

master
Marc Alexander Lehmann 14 years ago
parent
commit
98c93a5395
  1. 2
      ev_epoll.c
  2. 1
      ev_kqueue.c
  3. 2
      ev_poll.c
  4. 2
      ev_select.c

2
ev_epoll.c

@ -89,7 +89,7 @@ epoll_init (EV_P_ int flags)
fcntl (backend_fd, F_SETFD, FD_CLOEXEC);
backend_fudge = 2e-4; /* needed to compensate for epoll returning early */
backend_fudge = 0.; /* kernel sources seem to indicate this to be zero */
backend_modify = epoll_modify;
backend_poll = epoll_poll;

1
ev_kqueue.c

@ -153,7 +153,6 @@ kqueue_init (EV_P_ int flags)
fcntl (backend_fd, F_SETFD, FD_CLOEXEC); /* not sure if necessary, hopefully doesn't hurt */
/* fudge *might* be zero from the documentation, but bsd docs are notoriously wrong */
backend_fudge = 1e-3; /* needed to compensate for kevent returning early */
backend_modify = kqueue_modify;
backend_poll = kqueue_poll;

2
ev_poll.c

@ -108,7 +108,7 @@ poll_poll (EV_P_ ev_tstamp timeout)
int inline_size
poll_init (EV_P_ int flags)
{
backend_fudge = 0; /* needed to compensate for select returning early, very conservative */
backend_fudge = 0.; /* posix says this is zero */
backend_modify = poll_modify;
backend_poll = poll_poll;

2
ev_select.c

@ -203,7 +203,7 @@ select_poll (EV_P_ ev_tstamp timeout)
int inline_size
select_init (EV_P_ int flags)
{
backend_fudge = 0; /* needed to compensate for select returning early, very conservative */
backend_fudge = 0.; /* posix says this is zero */
backend_modify = select_modify;
backend_poll = select_poll;

Loading…
Cancel
Save