aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-06 19:29:17 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-06 19:29:17 +0000
commit38e205a25b8f34916a4d3fdb7aef7424745fdd5a (patch)
treeaa08e89e29505fdf7e8cadf90ed94882371ab019 /vl.c
parente1a237441dbe31873d6d9c7d9eee2f1653b5f9e8 (diff)
win32: do not use all cpu time
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@709 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 1e1b5e3e63..84e8698897 100644
--- a/vl.c
+++ b/vl.c
@@ -1529,7 +1529,11 @@ int main_loop(void)
timeout = 10;
}
-#ifndef _WIN32
+#ifdef _WIN32
+ if (timeout > 0)
+ Sleep(timeout);
+#else
+
/* poll any events */
/* XXX: separate device handlers from system ones */
pf = ufds;