From patchwork Tue Sep 12 16:00:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 112324 Delivered-To: patch@linaro.org Received: by 10.80.202.13 with SMTP id d13csp112405edi; Tue, 12 Sep 2017 09:01:21 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCMtqLaff8U+IaUmZhWGx8TqIq26rRsUXLpFoGm5OsHseM8HTKcccY8rhRXAQSvvPnGd4ve X-Received: by 10.55.149.2 with SMTP id x2mr20251318qkd.23.1505232081794; Tue, 12 Sep 2017 09:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505232081; cv=none; d=google.com; s=arc-20160816; b=HFrm7LJusRtjqofcAjN95IdIr7yAdkdXtvCbviOUMHD0BPsnRsfZTsmTWNWNmAu7a6 WtWPpebZM7AL2ftoGgwQ0fd37Wy7elTfDHQSLT7BDeXF7YouM5z4gki92mLprKe495Dy XWSWw2oE/Q5tz9ufuugnoxPyIk8Qk3XN1CBYnhkQAlIQDsHdo8R9qNvG0KvPEopw0Bzi 7U1ACP4xGx34sBFWnywkL78nKOrQvb2PjV0pcRobXeJU09DOckdYY1K0awJrFoyJ4aCW McYY2XYTA0xdEQfMakAwes4e6+J8ldOIKLxY+2oulnbJWvLXU7Qn4QaXtzLpIIQCqhn0 EV4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=UTSRGb9Y9yUUFbytRlR8aq6Ej1P6r2ARoAPjH7B2FzE=; b=w+lhPTYYX63YiQseiDpfz9XQc9ux/kyRNYLXXfnGPUMd4ewcy8vXMkCZR8kJta2jgw t2gL81AAMWxX2035og5myPKM3mvOckDqPcgMwU1jsnecVhqUB4JegcHBtXoRy8twNBjK dzBOo876y+S9PExrH/z+k5KfWCc9jQEnabyEYdiIwWi2hwBMaUmpND6uImMhXhyld+38 FPas8/k+BCcIYXcWapIigQAsFigwirbPDjosS2IUi35jUSYgHbey3XTSmhMuGooPv9gR 9vbx5tB9NdJCrDFWa6AlNiKYTImJQI5MLNK+sOKRTTEQ2W8Vo0aEZ56T7bm+qzaPWspU hn+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p23si12353346qkh.251.2017.09.12.09.01.21; Tue, 12 Sep 2017 09:01:21 -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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id ECDE860796; Tue, 12 Sep 2017 16:01:20 +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,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 20FB761235; Tue, 12 Sep 2017 16:00:37 +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 E09F461235; Tue, 12 Sep 2017 16:00:24 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id ABB6C60D92 for ; Tue, 12 Sep 2017 16:00:21 +0000 (UTC) Received: from mxback13j.mail.yandex.net (mxback13j.mail.yandex.net [IPv6:2a02:6b8:0:1619::88]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 34D7B1344454 for ; Tue, 12 Sep 2017 19:00:20 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback13j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 7attwW5jzQ-0KgOmwZH; Tue, 12 Sep 2017 19:00:20 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 0WCrpZsC8T-0JH8XwPH; Tue, 12 Sep 2017 19:00:19 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 12 Sep 2017 19:00:15 +0300 Message-Id: <1505232017-2279-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505232017-2279-1-git-send-email-odpbot@yandex.ru> References: <1505232017-2279-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 160 Subject: [lng-odp] [PATCH API-NEXT v8 2/4] api: schedule: add schedule order unlock lock api X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Balasubramanian Manoharan Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 160 (bala-manoharan:api_sched_order_lock) ** https://github.com/Linaro/odp/pull/160 ** Patch: https://github.com/Linaro/odp/pull/160.patch ** Base sha: 6b6253c30f88c80bf632436ff06c1b000860a2f1 ** Merge commit sha: 6f2ac07d768416a9261170bb08c4ba53f6d63d4b **/ include/odp/api/spec/schedule.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/include/odp/api/spec/schedule.h b/include/odp/api/spec/schedule.h index e2abf990..d305ce3b 100644 --- a/include/odp/api/spec/schedule.h +++ b/include/odp/api/spec/schedule.h @@ -371,6 +371,31 @@ void odp_schedule_order_lock(uint32_t lock_index); void odp_schedule_order_unlock(uint32_t lock_index); /** + * Release existing ordered context lock and acquire a new lock + * + * This call is valid only when holding an ordered synchronization context. + * Release a previously locked ordered context lock and acquire a new ordered + * context lock. This call is valid only when there is a single ordered context + * lock active. Results are undefined if this call is made when multiple ordered + * context locks are acquired in nested fashion. + * This call does not release the existing ordered context and only switches + * from one ordered lock to another ordered lock within the same ordered + * context. + * + * @param unlock_index Index of the acquired ordered lock in the current + * context to be released. Results are undefined if the + * ordered lock with the given unlock_index is not held by + * this ordered context. + * @param lock_index Index of the ordered lock in the current context to be + * acquired. Previously acquired ordered lock is released. + * Must be in the range 0...odp_queue_lock_count() - 1. + * + * @see odp_schedule_order_lock(), odp_schedule_order_unlock() + * + */ +void odp_schedule_order_unlock_lock(uint32_t unlock_index, uint32_t lock_index); + +/** * @} */