From patchwork Wed Sep 16 11:51:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 53729 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 456DE22A0D for ; Wed, 16 Sep 2015 11:53:20 +0000 (UTC) Received: by wisv5 with SMTP id v5sf20320380wis.0 for ; Wed, 16 Sep 2015 04:53:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=JZ5TbHq6fg1YrfYlYWhUXzhKH7h5SFnxUzOchLLFNqc=; b=TLXhkr4g4NLTCLQOcuBJ2XwQ3EyFu5E9PqdLqZmf8w8RImS8HPJVfC10jEAgEmfEe4 9JmM9LOSI16RQouU8qXWncUDB+NXzMqkCE4MoxkWCVBvw1n+GM/JcVJNBJtSEoM7WgbV tik0vb3VYhnZJkpxl0DA0HicbY38CLEi49OjzhFw4km3eIP5lXrgTDSjNwB0PSS33J94 GX64YgDGkDyaDKSSk74f4/pFa7eA9ENjRruoxqsg81Dsw8nlgF13PJLpfIVlmsgF7HEs 19seyLaofRd5a0+BwSvStiIfc2626GyjlTiIzV9e3AwJO0Jh0Gwwize+g+pglJA/k/Ga AvOQ== X-Gm-Message-State: ALoCoQkL87A+iKKuuiMori3RpQ5pcGmPHRv/6r/ildWfu/vrBGIxgaic4LvzkvMuGN1oudRw4Dbu X-Received: by 10.180.105.98 with SMTP id gl2mr1886037wib.0.1442404399592; Wed, 16 Sep 2015 04:53:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.10 with SMTP id o10ls921390lah.22.gmail; Wed, 16 Sep 2015 04:53:19 -0700 (PDT) X-Received: by 10.112.62.232 with SMTP id b8mr28454588lbs.27.1442404399415; Wed, 16 Sep 2015 04:53:19 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id bh10si17944871lbc.100.2015.09.16.04.53.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Sep 2015 04:53:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lanb10 with SMTP id b10so126693960lan.3 for ; Wed, 16 Sep 2015 04:53:19 -0700 (PDT) X-Received: by 10.112.72.97 with SMTP id c1mr28647491lbv.86.1442404399226; Wed, 16 Sep 2015 04:53:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp2400544lbq; Wed, 16 Sep 2015 04:53:18 -0700 (PDT) X-Received: by 10.140.231.76 with SMTP id b73mr7408001qhc.87.1442404398226; Wed, 16 Sep 2015 04:53:18 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h78si21517049qhc.45.2015.09.16.04.53.17; Wed, 16 Sep 2015 04:53:18 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id E908862D52; Wed, 16 Sep 2015 11:53:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id E2C1C62D43; Wed, 16 Sep 2015 11:52:17 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 2B7BA62D3D; Wed, 16 Sep 2015 11:52:10 +0000 (UTC) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by lists.linaro.org (Postfix) with ESMTPS id 3E55E62D27 for ; Wed, 16 Sep 2015 11:52:09 +0000 (UTC) Received: by oibi136 with SMTP id i136so122848412oib.3 for ; Wed, 16 Sep 2015 04:52:08 -0700 (PDT) X-Received: by 10.202.188.85 with SMTP id m82mr22128907oif.70.1442404328547; Wed, 16 Sep 2015 04:52:08 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by smtp.gmail.com with ESMTPSA id fh3sm10912155obb.23.2015.09.16.04.52.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Sep 2015 04:52:07 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 16 Sep 2015 06:51:57 -0500 Message-Id: <1442404320-5130-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1442404320-5130-1-git-send-email-bill.fischofer@linaro.org> References: <1442404320-5130-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3 2/5] api: queue: add odp_queue_lock_count() API X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Bill Fischofer --- include/odp/api/queue.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/odp/api/queue.h b/include/odp/api/queue.h index ce04eb4..df2a4c9 100644 --- a/include/odp/api/queue.h +++ b/include/odp/api/queue.h @@ -245,6 +245,19 @@ odp_schedule_prio_t odp_queue_sched_prio(odp_queue_t queue); odp_schedule_group_t odp_queue_sched_group(odp_queue_t queue); /** + * Queue lock count + * + * Return number of ordered locks associated with this ordered queue. + * Lock count is defined in odp_schedule_param_t. + * + * @param queue Queue handle + * + * @return Number of ordered locks associated with this ordered queue + * @retval <0 Specified queue is not ordered + */ +int odp_queue_lock_count(odp_queue_t queue); + +/** * Get printable value for an odp_queue_t * * @param hdl odp_queue_t handle to be printed