… | |
… | |
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 | |