ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.481 by root, Thu Jun 1 20:25:50 2017 UTC vs.
Revision 1.482 by root, Sat Jul 28 04:15:15 2018 UTC

1906 struct timespec ts; 1906 struct timespec ts;
1907 1907
1908 EV_TS_SET (ts, delay); 1908 EV_TS_SET (ts, delay);
1909 nanosleep (&ts, 0); 1909 nanosleep (&ts, 0);
1910#elif defined _WIN32 1910#elif defined _WIN32
1911 /* maybe this should round up, as ms is very low resolution */
1912 /* compared to select (µs) or nanosleep (ns) */
1911 Sleep ((unsigned long)(delay * 1e3)); 1913 Sleep ((unsigned long)(delay * 1e3));
1912#else 1914#else
1913 struct timeval tv; 1915 struct timeval tv;
1914 1916
1915 /* here we rely on sys/time.h + sys/types.h + unistd.h providing select */ 1917 /* here we rely on sys/time.h + sys/types.h + unistd.h providing select */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines