mirror of
https://github.com/git/git.git
synced 2026-02-20 06:45:11 +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)
|
||||
{
|
||||
SwitchToThread();
|
||||
/* Sleep 1 millisecond to avoid busy wait */
|
||||
SleepEx(1, TRUE);
|
||||
|
||||
goto restart;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user