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

Comparing libev/ev.c (file contents):
Revision 1.195 by root, Sat Dec 22 11:44:51 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
972} 974}
973 975
974unsigned int 976unsigned int
975ev_embeddable_backends (void) 977ev_embeddable_backends (void)
976{ 978{
979 int flags = EVBACKEND_EPOLL | EVBACKEND_KQUEUE | EVBACKEND_PORT;
980
977 /* 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 */
978 return EVBACKEND_KQUEUE 982 /* please fix it and tell me how to detect the fix */
979 | EVBACKEND_PORT; 983 flags &= ~EVBACKEND_EPOLL;
984
985 return flags;
980} 986}
981 987
982unsigned int 988unsigned int
983ev_backend (EV_P) 989ev_backend (EV_P)
984{ 990{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines