Windows: Call Sleep() with a value > 0.

From the documentation:

"A value of zero causes the thread to relinquish the remainder of its
time slice to any other thread of equal priority that is ready to run.
If there are no other threads of equal priority ready to run, the
function returns immediately, and the thread continues execution."

Thanks Simon!
This commit is contained in:
Brian Padalino 2013-09-29 12:05:14 -04:00
commit 9dad2af0de

View file

@ -105,7 +105,7 @@
#define strncasecmp _strnicmp
#define fileno _fileno
#define strdup _strdup
#define usleep(x) Sleep((x)/1000)
#define usleep(x) Sleep((x+999)/1000)
/* ssize_t lives elsewhere */
#include <BaseTsd.h>