Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-06 22:18:29 +0400
committerJunio C Hamano <gitster@pobox.com>2014-06-06 22:18:29 +0400
commit7461a3e9fca9b73e35386a1d8a2de2cf8b444871 (patch)
tree632b941b7c4552158583ee9dd99db3e94151fe84 /compat
parent1265886303778b5a2631c41c6ee61094c5fda7b0 (diff)
parent76e7c8a7ed58250bb74cf55618a81baed1797eca (diff)
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')
-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;
}