Merge 'poll-busy-wait' into HEAD

This commit is contained in:
Stepan Kasal
2014-04-16 16:34:30 +02:00

View File

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