From patchwork Thu Apr 28 12:04:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 93210 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E04D2B6F4E for ; Thu, 28 Apr 2011 22:04:52 +1000 (EST) Received: from localhost ([::1]:58001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFPxg-0002r5-9w for incoming@patchwork.ozlabs.org; Thu, 28 Apr 2011 08:04:48 -0400 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 To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCHv2 2/3] bh: add qemu_bh_is_scheduled X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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);