From patchwork Wed Nov 11 01:42:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 56360 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1097769lbb; Tue, 10 Nov 2015 17:43:06 -0800 (PST) X-Received: by 10.13.232.78 with SMTP id r75mr6950380ywe.67.1447206186114; Tue, 10 Nov 2015 17:43:06 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id z128si4060181ywz.65.2015.11.10.17.43.05; Tue, 10 Nov 2015 17:43: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; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 023B861CDB; Wed, 11 Nov 2015 01:43:04 +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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,T_DKIM_INVALID,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 A857C61AF3; Wed, 11 Nov 2015 01:43:01 +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 CEDC461A25; Wed, 11 Nov 2015 01:42:59 +0000 (UTC) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by lists.linaro.org (Postfix) with ESMTPS id 0A6E261A25 for ; Wed, 11 Nov 2015 01:42:59 +0000 (UTC) Received: by pacdm15 with SMTP id dm15so14712691pac.3 for ; Tue, 10 Nov 2015 17:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=7XIVXVRRa+DneTxEnerBfMlyijZq9Xat+4I1fxxuFAk=; b=oxmRn0HCo2yR2XbfF0t5LE37+icKiOjAX1JgBw2blqk1zm9m0X9SQmSiEFUPmueplD u05SzfJtkZPcwqT8ckJZJOmXThmG1ywvSvU4qBya+PjFhC/KwpxViw502FgxN+3KrOZw QsLyehmkJKulaield4KwCvcI3bj4FAgvdpLEdRxV4aa6SABgzoroSlA76Tj2mfLQPoko AvmXV7m5rgzyH32qpqN/N6wysaydRyYqxXm9lrTu14b8Izw8egA7OMTMSfzGrOz+aLGq FXFbB34gO4Mv+3mgIV4OoEAVuXg/HmT7APhNPMZXXqdDwBiGrw0g3WCCUX3AETlbhVKL 6o1A== 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=7XIVXVRRa+DneTxEnerBfMlyijZq9Xat+4I1fxxuFAk=; b=mPMTd5E8X11nAZonUOoeWd0YBNsW55DRoEO8KkL49WPXfJSt2ezH5XrLYWaTMjBqED rUnbbsxg5ii1YG4MAPTprbhqVNA7gBObf0mMUUfmRJLbzaT6vPLcXEODZH3Gc37449Nb 232rhT008xYnQi/wHdIcODJTl+uiiZaAhC0jXkBPzqipOe1uRoE+fiFUHuMHbO0QYv5n C9KtwVE4+zkFalvZ9doBhzqpmElGKcBWlXRm3sZbMcTtJiK2euEnGKvU+sHmKmFy+R1J BZbHC40yPNoB65eYCel/QWvZpvRc7QOt113VGYQH5nMM0QRUfrKjX3b5/1PwPzWbM621 MzZA== X-Gm-Message-State: ALoCoQnT3ktxVtgSsr/x2YE9lfczvp5PHfU+dWl6U36JKG0WnbhfzIV7XE+2HpaTxM3yHv74uf5L X-Received: by 10.68.166.99 with SMTP id zf3mr10498579pbb.58.1447206178220; Tue, 10 Nov 2015 17:42:58 -0800 (PST) Received: from Ubuntu15.localdomain ([70.35.39.246]) by smtp.gmail.com with ESMTPSA id vg7sm6516669pbc.2.2015.11.10.17.42.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Nov 2015 17:42:57 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 10 Nov 2015 17:42:51 -0800 Message-Id: <1447206173-31970-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 1/3] api: config: add odp_config_threads() 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Bill Fischofer --- include/odp/api/config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/odp/api/config.h b/include/odp/api/config.h index c9879d6..beb69d3 100644 --- a/include/odp/api/config.h +++ b/include/odp/api/config.h @@ -32,6 +32,12 @@ extern "C" { */ /** + * Maximum number of threads + * @return The maximum thread count supported by this platform + */ +int odp_config_threads(void); + +/** * Maximum number of pools * @return The maximum number of pools supported by this platform */