aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-08-06 09:51:25 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-08-06 09:51:25 +0000
commit6eb5733a3cad93b00043d48fa22b9df7d1f5ab33 (patch)
tree35cf5afe09e2954bd11d3288b4d36071299747b5 /vl.c
parent15e6690aca348a7dc8772b8f1197cf13c8764335 (diff)
fixed blocking io emulation
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2090 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 6daed966b1..0504c6f199 100644
--- a/vl.c
+++ b/vl.c
@@ -5200,19 +5200,23 @@ QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque)
return bh;
}
-void qemu_bh_poll(void)
+int qemu_bh_poll(void)
{
QEMUBH *bh, **pbh;
+ int ret;
+ ret = 0;
for(;;) {
pbh = &first_bh;
bh = *pbh;
if (!bh)
break;
+ ret = 1;
*pbh = bh->next;
bh->scheduled = 0;
bh->cb(bh->opaque);
}
+ return ret;
}
void qemu_bh_schedule(QEMUBH *bh)