… | |
… | |
280 | |
280 | |
281 | typedef ev_watcher *W; |
281 | typedef ev_watcher *W; |
282 | typedef ev_watcher_list *WL; |
282 | typedef ev_watcher_list *WL; |
283 | typedef ev_watcher_time *WT; |
283 | typedef 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 */ |
287 | static sig_atomic_t have_monotonic; /* did clock_gettime (CLOCK_MONOTONIC) work? */ |
288 | static 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 | |
991 | unsigned int |
988 | unsigned int |