diff options
author | root <root> | 2007-12-22 07:03:31 +0000 |
---|---|---|
committer | root <root> | 2007-12-22 07:03:31 +0000 |
commit | a2417dbac4f1991fb09fe2e0ba96dabdf69c72aa (patch) | |
tree | 2dd47c4f58615191fca5ebe2eb5d43a6ee8b9c30 | |
parent | da64db6d2bfa6add6c6ad65d51468dba440d03e3 (diff) |
*** empty log message ***
-rw-r--r-- | ev.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -282,7 +282,9 @@ typedef ev_watcher *W; typedef ev_watcher_list *WL; typedef ev_watcher_time *WT; -static int have_monotonic; /* did clock_gettime (CLOCK_MONOTONIC) work? */ +/* sig_atomic_t is used to avoid per-thread variables or locking but still */ +/* giving it a reasonably high chance of working on typical architetcures */ +static sig_atomic_t have_monotonic; /* did clock_gettime (CLOCK_MONOTONIC) work? */ #ifdef _WIN32 # include "ev_win32.c" |