Poor granularity of usleep impl on Win32

2014-04-23 Thread Daniel P. Berrange
The gnulib usleep replacement says /* This file is _intentionally_ light-weight. Rather than using select or nanosleep, both of which drag in external libraries on some platforms, this merely rounds up to the nearest second if usleep() does not exist. If sub-second resolution is

Re: Poor granularity of usleep impl on Win32

2014-04-23 Thread Eric Blake
On 04/23/2014 04:26 AM, Daniel P. Berrange wrote: > The gnulib usleep replacement says > > /* This file is _intentionally_ light-weight. Rather than using > select or nanosleep, both of which drag in external libraries on > some platforms, this merely rounds up to the nearest second i

Re: Poor granularity of usleep impl on Win32

2014-04-23 Thread Eric Blake
On 04/23/2014 04:26 AM, Daniel P. Berrange wrote: > The gnulib usleep replacement says > > /* This file is _intentionally_ light-weight. Rather than using > select or nanosleep, both of which drag in external libraries on > some platforms, this merely rounds up to the nearest second i