From patchwork Wed Jun 10 13:01:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 49688 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 29D32245D4 for ; Wed, 10 Jun 2015 13:01:49 +0000 (UTC) Received: by lagh7 with SMTP id h7sf12709796lag.2 for ; Wed, 10 Jun 2015 06:01:48 -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: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=7AzUeZXal/h9Et8l+9bqrmOCnUAH5XgWmK6GlTZfwAM=; b=jxNF+WTqQAcA0BbrDyiLjvZ6QOYJLrGfVTrRFyXVN/y6MTuC+ECwpnR7CP+sKRT2WO OTFDc+q7JfCOAM5EoIXmS/baHrx39k8buz1ZKbfWp+lkO3w6cX667vupL/ESBwRyH1p5 qS09ZcW3WVyZHTsjYPXqabbDnV3o3pRdL0lmNjZ7DWo2H3RZzR8VryA3Aa88LZ5AZrBC gmIOiQTz69lPfoLoaoW4PLyMadqH0lqvO4Yz0imxxm+rJKaqxQZkIHYNXSoD5vHBL7RL 4U1rPr6Uw6Zh1vbg/vv8YZHX61RYRpc0ZAj27T29M0hPX3WM2a5ny/llmrUc6wIuSWXt Ee0Q== X-Gm-Message-State: ALoCoQmzXM4HufZPg3FLD1yNtIOkoinbwwYB9hdzJsXuIrVLF55mErWAKY8bRrc884Zm6GAM7FZK X-Received: by 10.180.198.172 with SMTP id jd12mr21918445wic.5.1433941308105; Wed, 10 Jun 2015 06:01:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.178.164 with SMTP id cz4ls237474lac.3.gmail; Wed, 10 Jun 2015 06:01:47 -0700 (PDT) X-Received: by 10.112.171.68 with SMTP id as4mr3897299lbc.64.1433941307943; Wed, 10 Jun 2015 06:01:47 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id u9si8981993lau.48.2015.06.10.06.01.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jun 2015 06:01:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbcue7 with SMTP id ue7so28330333lbc.0 for ; Wed, 10 Jun 2015 06:01:47 -0700 (PDT) X-Received: by 10.112.182.4 with SMTP id ea4mr3922016lbc.35.1433941307748; Wed, 10 Jun 2015 06:01:47 -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 hn6csp3321656lbb; Wed, 10 Jun 2015 06:01:46 -0700 (PDT) X-Received: by 10.55.19.106 with SMTP id d103mr6116152qkh.42.1433941303714; Wed, 10 Jun 2015 06:01:43 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a74si8547529qgf.30.2015.06.10.06.01.42; Wed, 10 Jun 2015 06:01:43 -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 11A8961F27; Wed, 10 Jun 2015 13:01:42 +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 2853D61F18; Wed, 10 Jun 2015 13:01:40 +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 05B9461F1F; Wed, 10 Jun 2015 13:01:33 +0000 (UTC) Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by lists.linaro.org (Postfix) with ESMTPS id 19CC761E65 for ; Wed, 10 Jun 2015 13:01:32 +0000 (UTC) Received: by wiwd19 with SMTP id d19so47681157wiw.0 for ; Wed, 10 Jun 2015 06:01:31 -0700 (PDT) X-Received: by 10.181.11.137 with SMTP id ei9mr8114111wid.48.1433941291243; Wed, 10 Jun 2015 06:01:31 -0700 (PDT) Received: from e106441.cambridge.arm.com ([2001:41d0:a:3cb4::1]) by mx.google.com with ESMTPSA id bh7sm14429267wjb.8.2015.06.10.06.01.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jun 2015 06:01:30 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Wed, 10 Jun 2015 14:01:04 +0100 Message-Id: <1433941264-12098-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH] pool: clarify use of odp_pool_destroy() 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.217.171 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 The intended use of odp_pool_destroy() is during a controlled termination of an application, rather than to support pools being dynamically created and destroyed. Signed-off-by: Stuart Haslam --- include/odp/api/pool.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index 0bcfb98..02e9d21 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -119,6 +119,10 @@ odp_pool_t odp_pool_create(const char *name, odp_pool_param_t *params); /** * Destroy a pool previously created by odp_pool_create() * + * This routine is intended to be used only during graceful termination of an + * application, to free resources so that they may be used by a subsequent ODP + * instance. + * * @param pool Handle of the pool to be destroyed * * @retval 0 Success