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 06D16A0544; Wed, 15 Jun 2022 01:47:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12B7041145; Wed, 15 Jun 2022 01:47:23 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id B09E740DDD for ; Wed, 15 Jun 2022 01:47:20 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id B46A020C31DF; Tue, 14 Jun 2022 16:47:19 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B46A020C31DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1655250439; bh=BpH/7UYljPUNQx9hjxHdRfIGkRmyMMyaPPZ/l8N5l/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JdxJCgSur2JE9X9oNrPiFCLIGPfxBfzDBKqACDLlYxVKjom4uUNUvBz85ipi2pRJk Mf5hm9NQVfDEVUZneu0x2hHBA3bIdnUe48pQ5m+Kk7B6Th+RxI4K9AYbzQPdYlpDuC E5yhOPkjqi2jesLqXEO4eH5wqnM8Tv6bjLXpxXxc= From: Tyler Retzlaff To: dev@dpdk.org Cc: thomas@monjalon.net, dmitry.kozliuk@gmail.com, anatoly.burakov@intel.com, Tyler Retzlaff Subject: [PATCH v2 0/6] add thread lifetime and attributes API Date: Tue, 14 Jun 2022 16:47:12 -0700 Message-Id: <1655250438-18044-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1654783134-13303-1-git-send-email-roretzla@linux.microsoft.com> References: <1654783134-13303-1-git-send-email-roretzla@linux.microsoft.com> 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 add rte thread lifetime and attributes api. with these api additions there is now sufficient platform abstracted thread api to remove the use of pthread in the unit tests. v2: * split implementation of rte_thread_equal for windows / posix and use pthread_equal for posix platforms. * remove parameter validation assertions and instead return EINVAL for mandatory pointers to type that are NULL. * correct doxygen comment parameter name args -> arg Tyler Retzlaff (6): eal: add thread attributes eal: add thread lifetime management eal: add basic rte thread ID equal API test/threads: add tests for thread lifetime API test/threads: add tests for thread attributes API test/threads: remove unit test use of pthread app/test/test_threads.c | 130 +++++++++++++++++++++-- lib/eal/common/meson.build | 1 + lib/eal/common/rte_thread.c | 60 +++++++++++ lib/eal/include/rte_thread.h | 177 +++++++++++++++++++++++++++++++ lib/eal/unix/rte_thread.c | 114 ++++++++++++++++++++ lib/eal/version.map | 8 ++ lib/eal/windows/include/sched.h | 2 +- lib/eal/windows/rte_thread.c | 223 +++++++++++++++++++++++++++++++++------- 8 files changed, 668 insertions(+), 47 deletions(-) create mode 100644 lib/eal/common/rte_thread.c -- 1.8.3.1