From: Alon Levy <alevy@redhat.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCHv2 2/3] bh: add qemu_bh_is_scheduled
Date: Thu, 28 Apr 2011 15:04:13 +0300 [thread overview]
Message-ID: <1303992254-4940-3-git-send-email-alevy@redhat.com> (raw)
In-Reply-To: <1303992254-4940-1-git-send-email-alevy@redhat.com>
---
async.c | 4 ++++
qemu-common.h | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/async.c b/async.c
index 57ac3a8..204716e 100644
--- a/async.c
+++ b/async.c
@@ -214,3 +214,7 @@ void qemu_bh_update_timeout(int *timeout)
}
}
+int qemu_bh_is_scheduled(QEMUBH *bh)
+{
+ return bh->scheduled;
+}
diff --git a/qemu-common.h b/qemu-common.h
index f9f705d..a107468 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -151,6 +151,7 @@ void qemu_bh_cancel(QEMUBH *bh);
void qemu_bh_delete(QEMUBH *bh);
int qemu_bh_poll(void);
void qemu_bh_update_timeout(int *timeout);
+int qemu_bh_is_scheduled(QEMUBH *bh);
void qemu_get_timedate(struct tm *tm, int offset);
int qemu_timedate_diff(struct tm *tm);
--
1.7.4.4
next prev parent reply other threads:[~2011-04-28 12:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-28 12:04 [Qemu-devel] [PATCHv2 0/3] virtio-serial-bus: use a bh for flush_queued_data Alon Levy
2011-04-28 12:04 ` [Qemu-devel] [PATCHv2 1/3] virtio-serial-bus: use bh for unthrottling Alon Levy
2011-04-28 12:04 ` Alon Levy [this message]
2011-04-28 12:04 ` [Qemu-devel] [PATCHv2 3/3] virtio-serial-bus: on migration send status of pending ports bh Alon Levy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1303992254-4940-3-git-send-email-alevy@redhat.com \
--to=alevy@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).