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 C83E9A00BE; Mon, 25 Apr 2022 10:26:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B794241109; Mon, 25 Apr 2022 10:26:58 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 6C496410E6 for ; Mon, 25 Apr 2022 10:26:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650875216; 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=m8X3/Atr29Julnqn2YNEhjieInIMh1JeiThXF3zy1r0=; b=hQtKc7Kp5oj1yaa5SulfMO4blmA+kNnAsppPl8BEnOeEcXfQgLB/waCXVAtQImME+grFDK llWdGO9gNT6iwV53z3UH/o1lzfNc2q/+HwVn7NpJQPJ7IqBPBC0kY8jQqV7uzyxjtONT9e ozR1IP0tZfns0qdrP13dmBoKgq9qeTI= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-642-UupFXONLOYmdWUJxjjGmQQ-1; Mon, 25 Apr 2022 04:26:55 -0400 X-MC-Unique: UupFXONLOYmdWUJxjjGmQQ-1 Received: by mail-lj1-f199.google.com with SMTP id n4-20020a2ebd04000000b0024b618dec69so3376287ljq.18 for ; Mon, 25 Apr 2022 01:26:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m8X3/Atr29Julnqn2YNEhjieInIMh1JeiThXF3zy1r0=; b=Ky6/GLgTZ2xat+o4N9MLgBiuW8IQo9piV+7L6af6Vcg6pD0oXaijQiR2qfAT1CULUs FsusxKlcbhywoh0VGXJmjKlUjCBozrrwfTz5hJEzEj3tCb15UG8KkTRJWZh0mtKsn5LJ khcP52YZBtFTJo+I0p2+TCNO+HC6OQEXe/iYQJLfFPEwiHIu+9gf0Fw5VuqHCrZcCmm1 Exq9mEdWXbxI+M3q05bW6hFqqtxxHYwqGqMJRdJ/gqLyBOYa87O3AtRVD+RACbA6ro1Y 6mzXCwa4fPoi1U6HNyUZ/3psLd3hkt6/bMjmi8wMhIkBxpbMhMC0UD8F2aPRs637c9te rg0A== X-Gm-Message-State: AOAM531zKUiTijk6GgiHKBOicPIVnNHLu+EkGFbWDCZc7y2ocuqJ1evT OzEq4G4ig6YGHEFeKrJB4axvcLmlGEh/AVlrf48rcekQZGzT7t/UAUU+Z4RcWPHm+oisceKj0qR 0CvUTzqAyYi3rctHwj9k= X-Received: by 2002:a05:6512:2592:b0:471:ffdd:828d with SMTP id bf18-20020a056512259200b00471ffdd828dmr4988138lfb.560.1650875214082; Mon, 25 Apr 2022 01:26:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8Xs/oeLtBLalxVWOmWvJNCdyFbW8LB/z5+c5GMUNl425sQxS103rptUPIQg4SFc7vXVHhvK7Gdii0VHh6KdY= X-Received: by 2002:a05:6512:2592:b0:471:ffdd:828d with SMTP id bf18-20020a056512259200b00471ffdd828dmr4988125lfb.560.1650875213906; Mon, 25 Apr 2022 01:26:53 -0700 (PDT) MIME-Version: 1.0 References: <1648819793-18948-1-git-send-email-roretzla@linux.microsoft.com> <1649835795-9344-1-git-send-email-roretzla@linux.microsoft.com> <1649835795-9344-3-git-send-email-roretzla@linux.microsoft.com> In-Reply-To: <1649835795-9344-3-git-send-email-roretzla@linux.microsoft.com> From: David Marchand Date: Mon, 25 Apr 2022 10:26:42 +0200 Message-ID: Subject: Re: [PATCH v3 2/4] eal: add basic thread ID and current thread identifier API To: Tyler Retzlaff Cc: dev , Thomas Monjalon , Dmitry Kozlyuk , "Burakov, Anatoly" , Narcisa Vasile Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.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, Apr 13, 2022 at 9:43 AM Tyler Retzlaff wrote: > > Provide a portable type-safe thread identifier. > Provide rte_thread_self for obtaining current thread identifier. > > Signed-off-by: Narcisa Vasile > Signed-off-by: Tyler Retzlaff > --- > lib/eal/include/rte_thread.h | 22 ++++++++++++++++++++++ > lib/eal/unix/rte_thread.c | 11 +++++++++++ > lib/eal/version.map | 3 +++ > lib/eal/windows/rte_thread.c | 10 ++++++++++ > 4 files changed, 46 insertions(+) > > diff --git a/lib/eal/include/rte_thread.h b/lib/eal/include/rte_thread.h > index 8be8ed8..fb66d9a 100644 > --- a/lib/eal/include/rte_thread.h > +++ b/lib/eal/include/rte_thread.h > @@ -1,7 +1,10 @@ > /* SPDX-License-Identifier: BSD-3-Clause > * Copyright(c) 2021 Mellanox Technologies, Ltd > + * Copyright (C) 2022 Microsoft Corporation > */ > > +#include > + > #include > #include > > @@ -21,10 +24,29 @@ > #endif > > /** > + * Thread id descriptor. > + */ > +typedef struct rte_thread_tag { Is there a need for rte_thread_tag. I don't see it used. -- David Marchand