From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:32778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFPxF-0002oR-5k for qemu-devel@nongnu.org; Thu, 28 Apr 2011 08:04:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFPxE-0002eJ-7u for qemu-devel@nongnu.org; Thu, 28 Apr 2011 08:04:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFPxD-0002e3-VR for qemu-devel@nongnu.org; Thu, 28 Apr 2011 08:04:20 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3SC4JEH012095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 28 Apr 2011 08:04:19 -0400 Received: from playa.tlv.redhat.com (dhcp-3-110.tlv.redhat.com [10.35.3.110]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3SC4Fm4003428 for ; Thu, 28 Apr 2011 08:04:18 -0400 From: Alon Levy Date: Thu, 28 Apr 2011 15:04:13 +0300 Message-Id: <1303992254-4940-3-git-send-email-alevy@redhat.com> In-Reply-To: <1303992254-4940-1-git-send-email-alevy@redhat.com> References: <1303992254-4940-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [PATCHv2 2/3] bh: add qemu_bh_is_scheduled List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --- 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