From patchwork Sat Sep 12 04:10:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 53507 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 1DA7622B26 for ; Sat, 12 Sep 2015 04:12:09 +0000 (UTC) Received: by ladx5 with SMTP id x5sf16502448lad.1 for ; Fri, 11 Sep 2015 21:12:07 -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=UEzxurdbY+/LZXTHjXuIgapNEBT04EWKoz04ph+inLqnOx+GQhLLrtvwrY04M2TeLE 2m3KWKzCE83EMBmJMMwYNETLyV0dnoDbtai2x9E7Jw9oC41wS8RKUzqYRHWEB1zCbulq E30C4ZBK63fnO+7GBHvkeIRcWwLzbqhxf8koajJk8wUcafDBA0Uelf5JN1fm14hhMpud LHjsX9+rNSRWMbtU96GxGjie2VqUvguPeiO+CGoFbWhqLFma+rOOsAYmvJ3EL9ADAzC4 IWQlcZn8ppuVZNw8q/849jg/lpyl+19ZC5hCKFLaQPcSgcrPcVjI+sGoHMe+FEjYZuxr +BDg== X-Gm-Message-State: ALoCoQmYCcgzfZDopsBJnTvgtU0S9FrXIb9K92+ZcQvYnV6l28lqIwBsROMRrapKCtYdZjstSa3c X-Received: by 10.112.202.165 with SMTP id kj5mr572489lbc.5.1442031127740; Fri, 11 Sep 2015 21:12:07 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.193 with SMTP id 1ls413126law.30.gmail; Fri, 11 Sep 2015 21:12:07 -0700 (PDT) X-Received: by 10.152.23.199 with SMTP id o7mr1890235laf.76.1442031127584; Fri, 11 Sep 2015 21:12:07 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id wk2si2168873lbb.42.2015.09.11.21.12.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Sep 2015 21:12:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by lamp12 with SMTP id p12so57894256lam.0 for ; Fri, 11 Sep 2015 21:12:07 -0700 (PDT) X-Received: by 10.152.5.133 with SMTP id s5mr2038242las.19.1442031127118; Fri, 11 Sep 2015 21:12:07 -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 w3csp27704lbq; Fri, 11 Sep 2015 21:12:06 -0700 (PDT) X-Received: by 10.140.237.14 with SMTP id i14mr3806979qhc.28.1442031126246; Fri, 11 Sep 2015 21:12:06 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q9si2938099qkl.116.2015.09.11.21.11.36; Fri, 11 Sep 2015 21:12:06 -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 09D9A62C28; Sat, 12 Sep 2015 04:11:36 +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 5E4BE62C2D; Sat, 12 Sep 2015 04:10:35 +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 3C14F62C29; Sat, 12 Sep 2015 04:10:29 +0000 (UTC) Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by lists.linaro.org (Postfix) with ESMTPS id 7B88762C13 for ; Sat, 12 Sep 2015 04:10:28 +0000 (UTC) Received: by obbbh8 with SMTP id bh8so75175442obb.0 for ; Fri, 11 Sep 2015 21:10:28 -0700 (PDT) X-Received: by 10.182.213.165 with SMTP id nt5mr1797486obc.31.1442031027960; Fri, 11 Sep 2015 21:10:27 -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 m133sm1745821oif.8.2015.09.11.21.10.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Sep 2015 21:10:27 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 11 Sep 2015 23:10:17 -0500 Message-Id: <1442031020-1907-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1442031020-1907-1-git-send-email-bill.fischofer@linaro.org> References: <1442031020-1907-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 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.51 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