From patchwork Thu Feb 25 00:09:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 62848 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2703570lbl; Wed, 24 Feb 2016 16:10:07 -0800 (PST) X-Received: by 10.55.203.23 with SMTP id d23mr28390008qkj.25.1456359006989; Wed, 24 Feb 2016 16:10:06 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d13si5284938qhc.70.2016.02.24.16.10.06; Wed, 24 Feb 2016 16:10:06 -0800 (PST) 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 Received: by lists.linaro.org (Postfix, from userid 109) id 3375E65072; Thu, 25 Feb 2016 00:10:06 +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_H2, 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 E3425617E2; Thu, 25 Feb 2016 00:10:00 +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 ECC436185D; Thu, 25 Feb 2016 00:09:58 +0000 (UTC) Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by lists.linaro.org (Postfix) with ESMTPS id BFDC361753 for ; Thu, 25 Feb 2016 00:09:57 +0000 (UTC) Received: by mail-oi0-f48.google.com with SMTP id m82so28988691oif.1 for ; Wed, 24 Feb 2016 16:09:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=p0vBEIsWD0vWowkcx5vNtl9LQNiQ8PxukZ5pc8QyIKg=; b=mN/WUVxrZ3EPUX9DxwykaeFeIUN74I6GJePWRcvlPaYFYpf3ZiT3J3QyppYz58FVcM JA8FskJ/4mdMTi7LJNY67uP1mbtKQvlgTF6Th70P65kHF8XT33geZOiVw9PibBKrIBRX YkLneanumXhYkhvHD/xo2qGhpUindeOs2SniwclzjKdbGuLhJ/XFJ1nrNzmztlZsz1Il hIWcREnkvQbzXFjhTPr3UaVSehnIQxjDwn32Ms6hcfnQe6nfOZYYulQLg5FVvBbcon/P LL9Ak8TewNFtgmFppEu1uWs8xOkDOglQm5IoJEDo3xHCrU4WYB+vWOVYPV554ldNtXmP Pi5Q== X-Gm-Message-State: AG10YOQD+cMIzRUgjG+nJzDbrfGx2rM8iD3gZvXhj2WCu9m0VcU+MvGWjM+++4OWzlD4NdCv/bk= X-Received: by 10.202.213.81 with SMTP id m78mr33869510oig.102.1456358997297; Wed, 24 Feb 2016 16:09:57 -0800 (PST) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id yy7sm3495687obb.26.2016.02.24.16.09.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Feb 2016 16:09:56 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 24 Feb 2016 18:09:54 -0600 Message-Id: <1456358994-30018-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: patch Subject: [lng-odp] [PATCH] doc: userguide: add thread type description to odp_init_local() discussion 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" This addresses Bug https://bugs.linaro.org/show_bug.cgi?id=2058 Signed-off-by: Bill Fischofer --- doc/users-guide/users-guide.adoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/users-guide/users-guide.adoc b/doc/users-guide/users-guide.adoc index bbb53a7..7a5e49f 100644 --- a/doc/users-guide/users-guide.adoc +++ b/doc/users-guide/users-guide.adoc @@ -498,9 +498,12 @@ suitable for the ODP API. Calling odp_init_global() establishes the ODP API framework and MUST be called before any other ODP API may be called. Note that it is only called once per application. Following global initialization, each thread in turn -calls 'odp_init_local()' is called. This establishes the local ODP thread +calls 'odp_init_local()'. This establishes the local ODP thread context for that thread and MUST be called before other ODP APIs may be -called by that thread. +called by that thread. The sole argument to this call is the _thread type_, +which is either +ODP_THREAD_WORKER+ or +ODP_THREAD_CONTROL+. + + === Shutdown Shutdown is the logical reverse of the initialization procedure, with