mirror of
https://github.com/git/git.git
synced 2026-02-20 23:01:09 +00:00
Merge pull request #7 from theoleblond/PollSleep
Sleep 1 millisecond in poll() to avoid busy wait
This commit is contained in:
@@ -597,7 +597,9 @@ restart:
|
|||||||
|
|
||||||
if (!rc && timeout == INFTIM)
|
if (!rc && timeout == INFTIM)
|
||||||
{
|
{
|
||||||
SwitchToThread();
|
/* Sleep 1 millisecond to avoid busy wait */
|
||||||
|
SleepEx(1, TRUE);
|
||||||
|
|
||||||
goto restart;
|
goto restart;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user