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

Comparing libev/ev.c (file contents):
Revision 1.196 by root, Sat Dec 22 12:43:28 2007 UTC vs.
Revision 1.198 by root, Sun Dec 23 04:45:51 2007 UTC

280 280
281typedef ev_watcher *W; 281typedef ev_watcher *W;
282typedef ev_watcher_list *WL; 282typedef ev_watcher_list *WL;
283typedef ev_watcher_time *WT; 283typedef ev_watcher_time *WT;
284 284
285#if EV_USE_MONOTONIC
285/* sig_atomic_t is used to avoid per-thread variables or locking but still */ 286/* sig_atomic_t is used to avoid per-thread variables or locking but still */
286/* giving it a reasonably high chance of working on typical architetcures */ 287/* giving it a reasonably high chance of working on typical architetcures */
287static sig_atomic_t have_monotonic; /* did clock_gettime (CLOCK_MONOTONIC) work? */ 288static sig_atomic_t have_monotonic; /* did clock_gettime (CLOCK_MONOTONIC) work? */
289#endif
288 290
289#ifdef _WIN32 291#ifdef _WIN32
290# include "ev_win32.c" 292# include "ev_win32.c"
291#endif 293#endif
292 294
977 int flags = EVBACKEND_EPOLL | EVBACKEND_KQUEUE | EVBACKEND_PORT; 979 int flags = EVBACKEND_EPOLL | EVBACKEND_KQUEUE | EVBACKEND_PORT;
978 980
979 /* epoll embeddability broken on all linux versions up to at least 2.6.23 */ 981 /* epoll embeddability broken on all linux versions up to at least 2.6.23 */
980 /* please fix it and tell me how to detect the fix */ 982 /* please fix it and tell me how to detect the fix */
981 flags &= ~EVBACKEND_EPOLL; 983 flags &= ~EVBACKEND_EPOLL;
982
983#ifdef __APPLE__
984 /* is there anything thats not broken on darwin? */
985 flags &= ~EVBACKEND_KQUEUE;
986#endif
987 984
988 return flags; 985 return flags;
989} 986}
990 987
991unsigned int 988unsigned int

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines