qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCHv2 2/3] bh: add qemu_bh_is_scheduled


From: Alon Levy
Subject: [Qemu-devel] [PATCHv2 2/3] bh: add qemu_bh_is_scheduled
Date: Thu, 28 Apr 2011 15:04:13 +0300

---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]