]> git.llucax.com Git - software/libev.git/commitdiff
*** empty log message ***
authorroot <root>
Sat, 22 Dec 2007 07:03:31 +0000 (07:03 +0000)
committerroot <root>
Sat, 22 Dec 2007 07:03:31 +0000 (07:03 +0000)
ev.c

diff --git a/ev.c b/ev.c
index 14213df8f039858fdcd18a9e79d0ff779d127b70..9647e1659da2f3cbf92fa1121d0d0b84cdefed7c 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -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"