Commit 74ea159b authored by Denis Bilenko's avatar Denis Bilenko

libev: set backend_fudge to 1e-3 on Windows. Experiments show this is when...

libev: set backend_fudge to 1e-3 on Windows. Experiments show this is when sleep(0) stops busy looping and starts sleeping.
parent be8616bf
......@@ -269,7 +269,11 @@ select_poll (EV_P_ ev_tstamp timeout)
int inline_size
select_init (EV_P_ int flags)
{
#ifdef _WIN32
backend_fudge = 1e-3;
#else
backend_fudge = 0.; /* posix says this is zero */
#endif
backend_modify = select_modify;
backend_poll = select_poll;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment