From patchwork Mon Jul 13 17:53:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 51078 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D3E7620319 for ; Mon, 13 Jul 2015 17:57:27 +0000 (UTC) Received: by lagx9 with SMTP id x9sf100921343lag.2 for ; Mon, 13 Jul 2015 10:57:26 -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=qVfpNT2egZisthqo5vT4+ZpNuqYZWVatc9Mdk5Vy5gc=; b=MSr0FStHxRFaMJiMJTpkXuu6JgcfyVj01LCS4c6jHZkYiHC0PqXRfZIqYIkOEQukZq ihR6ppQtGlTGjcmzBoRjvXZonV9D1wGhGxeTt3mHq93z98lr0qVQOA4oyYoiWzpPTlq6 vFUbuvSEm1qcD+NCuGYXuvJVwpwafiyMtamBPBqwQgymFLFuHD7L/zbl2jEfRMeG+Bc0 G6VWCVTASkBPDa1avaSbSW+OXmz36nAfEe3TLSRhc7AS87hb/xLc2UOmzC56D2nKwJnC Rouj83GLBZTIZ2LjqM2yw1g98vPx0hPjHrQAwtGxpvSFMsMzz6PmyBUXz+aNb3TKL8dm L41Q== X-Gm-Message-State: ALoCoQnQ12EY2Eo/kbv1VyosAN5NRIqMfNEF2bb6BGCAHMFV3kuCw8ObhsVp6nuUkIMLFDJW1ToG X-Received: by 10.112.98.42 with SMTP id ef10mr11265258lbb.18.1436810246866; Mon, 13 Jul 2015 10:57:26 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.202 with SMTP id 10ls1672577law.79.gmail; Mon, 13 Jul 2015 10:57:26 -0700 (PDT) X-Received: by 10.152.198.135 with SMTP id jc7mr33363832lac.48.1436810246722; Mon, 13 Jul 2015 10:57:26 -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 da7si15595658lad.99.2015.07.13.10.57.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jul 2015 10:57:26 -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 lagw2 with SMTP id w2so19113813lag.3 for ; Mon, 13 Jul 2015 10:57:26 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr34080358lbb.35.1436810246596; Mon, 13 Jul 2015 10:57:26 -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.108.230 with SMTP id hn6csp1878339lbb; Mon, 13 Jul 2015 10:57:25 -0700 (PDT) X-Received: by 10.140.217.149 with SMTP id n143mr59195159qhb.9.1436810245353; Mon, 13 Jul 2015 10:57:25 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e130si21561532qhc.42.2015.07.13.10.57.24; Mon, 13 Jul 2015 10:57:25 -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 9251F61DAA; Mon, 13 Jul 2015 17:57:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal 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 ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id DAAFE61E1B; Mon, 13 Jul 2015 17:54:07 +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 27C5E61E20; Mon, 13 Jul 2015 17:54:05 +0000 (UTC) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by lists.linaro.org (Postfix) with ESMTPS id 759F161E1B for ; Mon, 13 Jul 2015 17:53:33 +0000 (UTC) Received: by wicmv11 with SMTP id mv11so68564632wic.1 for ; Mon, 13 Jul 2015 10:53:32 -0700 (PDT) X-Received: by 10.180.186.35 with SMTP id fh3mr1897140wic.7.1436810012632; Mon, 13 Jul 2015 10:53:32 -0700 (PDT) Received: from e106441.cambridge.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id fm8sm15888662wib.9.2015.07.13.10.53.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Jul 2015 10:53:31 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Mon, 13 Jul 2015 18:53:08 +0100 Message-Id: <1436809989-9225-6-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1436809989-9225-1-git-send-email-stuart.haslam@linaro.org> References: <1436809989-9225-1-git-send-email-stuart.haslam@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 5/6] validation: common: return number of threads created 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: stuart.haslam@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.mail=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 odph_linux_pthread_create() now returns the number of threads created, so modify odp_cunit_thread_create() to do the same. Signed-off-by: Stuart Haslam --- test/validation/common/odp_cunit_common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/validation/common/odp_cunit_common.c b/test/validation/common/odp_cunit_common.c index 807325b..d995ad3 100644 --- a/test/validation/common/odp_cunit_common.c +++ b/test/validation/common/odp_cunit_common.c @@ -29,10 +29,9 @@ int odp_cunit_thread_create(void *func_ptr(void *), pthrd_arg *arg) /* Create and init additional threads */ odp_cpumask_def_worker(&cpumask, arg->numthrds); - odph_linux_pthread_create(thread_tbl, &cpumask, func_ptr, - (void *)arg); - return 0; + return odph_linux_pthread_create(thread_tbl, &cpumask, func_ptr, + (void *)arg); } /** exit from test thread */