summaryrefslogtreecommitdiff
path: root/compat/poll/poll.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-06 18:18:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-06 18:18:29 (GMT)
commit7461a3e9fca9b73e35386a1d8a2de2cf8b444871 (patch)
tree632b941b7c4552158583ee9dd99db3e94151fe84 /compat/poll/poll.c
parent1265886303778b5a2631c41c6ee61094c5fda7b0 (diff)
parent76e7c8a7ed58250bb74cf55618a81baed1797eca (diff)
downloadgit-7461a3e9fca9b73e35386a1d8a2de2cf8b444871.zip
git-7461a3e9fca9b73e35386a1d8a2de2cf8b444871.tar.gz
git-7461a3e9fca9b73e35386a1d8a2de2cf8b444871.tar.bz2
Merge branch 'tl/relax-in-poll-emulation'
* tl/relax-in-poll-emulation: compat/poll: sleep 1 millisecond to avoid busy wait
Diffstat (limited to 'compat/poll/poll.c')
-rw-r--r--compat/poll/poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/poll/poll.c b/compat/poll/poll.c
index 31163f2..a9b41d8 100644
--- a/compat/poll/poll.c
+++ b/compat/poll/poll.c
@@ -605,7 +605,7 @@ restart:
if (!rc && timeout == INFTIM)
{
- SwitchToThread();
+ SleepEx (1, TRUE);
goto restart;
}