]> git.proxmox.com Git - qemu.git/commit
main loop: use msec-based timeout in glib_select_fill
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Mar 2012 09:49:17 +0000 (10:49 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 7 Apr 2012 08:34:15 +0000 (08:34 +0000)
commit4dae83aeac63863af6b59f58552da68b35b1a40d
treec3e0c6270fa44c2a70f2e95e5d67f5f53c7744b9
parentab7ab3d74c357e73a37b241fba27ea7f0595c085
main loop: use msec-based timeout in glib_select_fill

The timeval-based timeout is not needed until we actually invoke select,
so compute it only then.  Also group the two calls that modify the
timeout, glib_select_fill and os_host_main_loop_wait.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
main-loop.c