From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 25F9FA00C2; Thu, 6 Oct 2022 10:32:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3AC942BAE; Thu, 6 Oct 2022 10:32:43 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id DBF2642B98 for ; Thu, 6 Oct 2022 10:32:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665045161; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hzN8216yq5jAIBKY2BmsQHpjjU53I6ZCvCaUgbYDbYs=; b=IbWzejGAUYyN5Hi7nk3VQZWCI7sR+I7vxDLzg7meGSdBNoKK+fAWHNJHeZRTaMHrWd0RHD G6tTQX4jC1zX/gI1rDxKnJSsYf9/chFbZUdw07wHDkvdrwkPTo9msuvvgMkCu98S88D30O jbwSxQCc3/ox0QNXUEV7n8gwHHpIXxw= Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-375-CaOh1SvXO-6ytUMglpcYcQ-1; Thu, 06 Oct 2022 04:32:40 -0400 X-MC-Unique: CaOh1SvXO-6ytUMglpcYcQ-1 Received: by mail-pg1-f199.google.com with SMTP id p24-20020a63f458000000b0043cd718c49dso790281pgk.15 for ; Thu, 06 Oct 2022 01:32:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=hzN8216yq5jAIBKY2BmsQHpjjU53I6ZCvCaUgbYDbYs=; b=tOrJL3OBc9rk9BszHkdov6SyCeE9X7jP+jytTCaTfD8OwrF37IMPPekUNmJWCnva6x mysX9aaHh1IbXZZxQyQtfQmxKdrz3wmmbCcBzb0IOsHPGUfJMcTjU+ACCz37wEfVSDBJ nmTiJ6uPsVbB2IdRAhGheXi5c9+SHIXI6+aoYWv+AhzywTIjibTXh6i3knERpzyuJKs4 P692LVMhDIaD8FZdEBhp2ukrtKukJEfs7O88tODnItkb6m6ovd3ulieNL63gXlyubXH0 75YfDrn5m9bidugElm5gOVFDsoGvdje0QLFplgWJSDcgoFUo5pSO/7Ltpfc42ndy5I/+ oDDA== X-Gm-Message-State: ACrzQf2ObACgmGHLnBthito2ccH3Bk4okdpdXVuO2sqqjS17gbBVht++ EnuF4xMglQmNRbbGkXp7Y9SaUAnaH6njSrffQ6xo9dDig5BdBv1vIap+Tj49toXDcmaxC1MLKC3 MQ/89X+b2sa6Xxw2/eLg= X-Received: by 2002:a62:c584:0:b0:558:2095:e5ed with SMTP id j126-20020a62c584000000b005582095e5edmr4087309pfg.64.1665045159043; Thu, 06 Oct 2022 01:32:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4V+ga1hGYBrFF5tQuTHWPKAyOcbAuYMqq6uBOxpsTDFWx4KODC1/2JLQ5EcjECgUCIQ3DeSezhQlYWXOXo9l0= X-Received: by 2002:a62:c584:0:b0:558:2095:e5ed with SMTP id j126-20020a62c584000000b005582095e5edmr4087289pfg.64.1665045158789; Thu, 06 Oct 2022 01:32:38 -0700 (PDT) MIME-Version: 1.0 References: <1654783134-13303-1-git-send-email-roretzla@linux.microsoft.com> <1664989651-29303-1-git-send-email-roretzla@linux.microsoft.com> <1664989651-29303-2-git-send-email-roretzla@linux.microsoft.com> In-Reply-To: <1664989651-29303-2-git-send-email-roretzla@linux.microsoft.com> From: David Marchand Date: Thu, 6 Oct 2022 10:32:27 +0200 Message-ID: Subject: Re: [PATCH v5 1/6] eal: add thread attributes To: Tyler Retzlaff Cc: dev@dpdk.org, thomas@monjalon.net, dmitry.kozliuk@gmail.com, anatoly.burakov@intel.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, Oct 5, 2022 at 7:07 PM Tyler Retzlaff wrote: > @@ -57,7 +65,105 @@ enum rte_thread_priority { > __rte_experimental > rte_thread_t rte_thread_self(void); > > -#ifdef RTE_HAS_CPUSET > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice. > + * > + * Check if 2 thread ids are equal. > + * > + * @param t1 > + * First thread id. > + * > + * @param t2 > + * Second thread id. > + * > + * @return > + * If the ids are equal, return nonzero. > + * Otherwise, return 0. > + */ > +__rte_experimental > +int rte_thread_equal(rte_thread_t t1, rte_thread_t t2); Rebase damage, I'll fix when applying. -- David Marchand