mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 22:47:41 -07:00
win32: do not use all cpu time
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@709 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e1a237441d
commit
38e205a25b
1 changed files with 5 additions and 1 deletions
6
vl.c
6
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue