]> git.proxmox.com Git - mirror_qemu.git/commit - util/main-loop.c
main-loop: Calculate poll timeout using timeout argument
authorStefan Weil <sw@weilnetz.de>
Sun, 29 Apr 2012 17:15:02 +0000 (19:15 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 1 May 2012 10:46:25 +0000 (10:46 +0000)
commit3239ad04695f95ce060bdc2a0a6e1243d2068971
tree1afc5d6925ef1d653649a8dda9d9359a28bec2b7
parent1b296044b6fa46757f755c86e05ed3bf99d78f26
main-loop: Calculate poll timeout using timeout argument

The timeout argument was unused up to now,
but it can be used to reduce the poll_timeout when it is infinite
(negative value) or larger than timeout.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
main-loop.c