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

Comparing libev/ev.c (file contents):
Revision 1.322 by root, Thu Jan 7 06:49:31 2010 UTC vs.
Revision 1.325 by root, Sun Jan 24 12:31:55 2010 UTC

110# define EV_USE_EPOLL 0 110# define EV_USE_EPOLL 0
111# endif 111# endif
112# endif 112# endif
113 113
114# ifndef EV_USE_KQUEUE 114# ifndef EV_USE_KQUEUE
115# if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H 115# if HAVE_KQUEUE && HAVE_SYS_EVENT_H
116# define EV_USE_KQUEUE 1 116# define EV_USE_KQUEUE 1
117# else 117# else
118# define EV_USE_KQUEUE 0 118# define EV_USE_KQUEUE 0
119# endif 119# endif
120# endif 120# endif
344# endif 344# endif
345#endif 345#endif
346 346
347/* this block fixes any misconfiguration where we know we run into trouble otherwise */ 347/* this block fixes any misconfiguration where we know we run into trouble otherwise */
348 348
349#ifdef _AIX
350/* AIX has a completely broken poll.h header */
351# undef EV_USE_POLL
352# define EV_USE_POLL 0
353#endif
354
349#ifndef CLOCK_MONOTONIC 355#ifndef CLOCK_MONOTONIC
350# undef EV_USE_MONOTONIC 356# undef EV_USE_MONOTONIC
351# define EV_USE_MONOTONIC 0 357# define EV_USE_MONOTONIC 0
352#endif 358#endif
353 359
2157 ANHE_at_cache (*he); 2163 ANHE_at_cache (*he);
2158 } 2164 }
2159} 2165}
2160 2166
2161/* fetch new monotonic and realtime times from the kernel */ 2167/* fetch new monotonic and realtime times from the kernel */
2162/* also detetc if there was a timejump, and act accordingly */ 2168/* also detect if there was a timejump, and act accordingly */
2163inline_speed void 2169inline_speed void
2164time_update (EV_P_ ev_tstamp max_block) 2170time_update (EV_P_ ev_tstamp max_block)
2165{ 2171{
2166#if EV_USE_MONOTONIC 2172#if EV_USE_MONOTONIC
2167 if (expect_true (have_monotonic)) 2173 if (expect_true (have_monotonic))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines