… | |
… | |
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 | /* 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 */ |
285 | static int have_monotonic; /* did clock_gettime (CLOCK_MONOTONIC) work? */ |
287 | static sig_atomic_t have_monotonic; /* did clock_gettime (CLOCK_MONOTONIC) work? */ |
286 | |
288 | |
287 | #ifdef _WIN32 |
289 | #ifdef _WIN32 |
288 | # include "ev_win32.c" |
290 | # include "ev_win32.c" |
289 | #endif |
291 | #endif |
290 | |
292 | |