summaryrefslogtreecommitdiff
path: root/compat/poll/poll.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-06-06 11:18:29 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-06-06 11:18:29 -0700
commit7461a3e9fca9b73e35386a1d8a2de2cf8b444871 (patch)
tree632b941b7c4552158583ee9dd99db3e94151fe84 /compat/poll/poll.c
parentMerge branch 'jk/utf8-switch-between-nfd-and-nfc' (diff)
parentcompat/poll: sleep 1 millisecond to avoid busy wait (diff)
downloadtgif-7461a3e9fca9b73e35386a1d8a2de2cf8b444871.tar.xz
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 31163f2ae7..a9b41d89f4 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;
}