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:
parent
c7355c592f
commit
9dad2af0de
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue