Merge pull request #7 from theoleblond/PollSleep

Sleep 1 millisecond in poll() to avoid busy wait
This commit is contained in:
Erik Faye-Lund
2012-05-16 11:41:51 -07:00

View File

@@ -597,7 +597,9 @@ restart:
if (!rc && timeout == INFTIM)
{
SwitchToThread();
/* Sleep 1 millisecond to avoid busy wait */
SleepEx(1, TRUE);
goto restart;
}