mirror of
https://github.com/git/git
synced 2024-10-12 11:32:34 +00:00
Merge branch 'tl/relax-in-poll-emulation'
* tl/relax-in-poll-emulation: compat/poll: sleep 1 millisecond to avoid busy wait
This commit is contained in:
commit
7461a3e9fc
|
@ -605,7 +605,7 @@ poll (struct pollfd *pfd, nfds_t nfd, int timeout)
|
|||
|
||||
if (!rc && timeout == INFTIM)
|
||||
{
|
||||
SwitchToThread();
|
||||
SleepEx (1, TRUE);
|
||||
goto restart;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue