diff options
author | Liu Ping Fan <qemulist@gmail.com> | 2013-08-25 10:01:21 +0800 |
---|---|---|
committer | Jan Kiszka <jan.kiszka@siemens.com> | 2013-09-17 12:26:05 +0200 |
commit | a42e9c41888bc6a5446ef6bd95745c9fd023f107 (patch) | |
tree | 0a996aea98aaf4de80aa0a7622b57e772969e559 /stubs | |
parent | 9b0ca6cc64d3542be35f1ca6174de2ab6af30ed0 (diff) | |
download | qemu-a42e9c41888bc6a5446ef6bd95745c9fd023f107.tar.gz qemu-a42e9c41888bc6a5446ef6bd95745c9fd023f107.tar.bz2 qemu-a42e9c41888bc6a5446ef6bd95745c9fd023f107.zip |
slirp: set mainloop timeout with more precise value
If slirp needs to emulate tcp timeout, then the timeout value
for mainloop should be more precise, which is determined by
slirp's fasttimo or slowtimo. Achieve this by swap the logic
sequence of slirp_pollfds_fill and slirp_update_timeout.
Signed-off-by: Liu Ping Fan <pingfank@linux.vnet.ibm.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'stubs')
-rw-r--r-- | stubs/slirp.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/stubs/slirp.c b/stubs/slirp.c index f1fc833f7a..bd0ac7f27d 100644 --- a/stubs/slirp.c +++ b/stubs/slirp.c @@ -1,11 +1,7 @@ #include "qemu-common.h" #include "slirp/slirp.h" -void slirp_update_timeout(uint32_t *timeout) -{ -} - -void slirp_pollfds_fill(GArray *pollfds) +void slirp_pollfds_fill(GArray *pollfds, uint32_t *timeout) { } |