ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.340 by root, Tue Mar 16 20:39:29 2010 UTC vs.
Revision 1.342 by root, Mon Mar 29 12:40:57 2010 UTC

1507#ifdef __APPLE__ 1507#ifdef __APPLE__
1508 /* only select works correctly on that "unix-certified" platform */ 1508 /* only select works correctly on that "unix-certified" platform */
1509 flags &= ~EVBACKEND_KQUEUE; /* horribly broken, even for sockets */ 1509 flags &= ~EVBACKEND_KQUEUE; /* horribly broken, even for sockets */
1510 flags &= ~EVBACKEND_POLL; /* poll is based on kqueue from 10.5 onwards */ 1510 flags &= ~EVBACKEND_POLL; /* poll is based on kqueue from 10.5 onwards */
1511#endif 1511#endif
1512#ifdef __FreeBSD__
1513 flags &= ~EVBACKEND_POLL; /* poll return value is unusable (http://forums.freebsd.org/archive/index.php/t-10270.html) */
1514#endif
1512 1515
1513 return flags; 1516 return flags;
1514} 1517}
1515 1518
1516unsigned int 1519unsigned int
2096 EV_FREQUENT_CHECK; 2099 EV_FREQUENT_CHECK;
2097 feed_reverse (EV_A_ (W)w); 2100 feed_reverse (EV_A_ (W)w);
2098 } 2101 }
2099 while (timercnt && ANHE_at (timers [HEAP0]) < mn_now); 2102 while (timercnt && ANHE_at (timers [HEAP0]) < mn_now);
2100 2103
2101 feed_reverse_done (EV_A_ EV_TIMEOUT); 2104 feed_reverse_done (EV_A_ EV_TIMER);
2102 } 2105 }
2103} 2106}
2104 2107
2105#if EV_PERIODIC_ENABLE 2108#if EV_PERIODIC_ENABLE
2106/* make periodics pending */ 2109/* make periodics pending */
3636{ 3639{
3637 struct ev_once *once = (struct ev_once *)ev_malloc (sizeof (struct ev_once)); 3640 struct ev_once *once = (struct ev_once *)ev_malloc (sizeof (struct ev_once));
3638 3641
3639 if (expect_false (!once)) 3642 if (expect_false (!once))
3640 { 3643 {
3641 cb (EV_ERROR | EV_READ | EV_WRITE | EV_TIMEOUT, arg); 3644 cb (EV_ERROR | EV_READ | EV_WRITE | EV_TIMER, arg);
3642 return; 3645 return;
3643 } 3646 }
3644 3647
3645 once->cb = cb; 3648 once->cb = cb;
3646 once->arg = arg; 3649 once->arg = arg;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines