From patchwork Thu Jun 9 13:58:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 112621 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 895DCA0555; Thu, 9 Jun 2022 15:58:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7008F40689; Thu, 9 Jun 2022 15:58:58 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 1FD4440220 for ; Thu, 9 Jun 2022 15:58:57 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 73ECE20BE677; Thu, 9 Jun 2022 06:58:56 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 73ECE20BE677 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1654783136; bh=Xe6f6gz1d1u2a36lbwQTQnEeo1XN3nZazsZWtlQO8xs=; h=From:To:Cc:Subject:Date:From; b=ALvJfKvlwVNdMGlUtzDt87qNGF/WNUgS2GEsNPm3/RP/Ig/P8ykHayNnORytStVcP fmFJ6v+tjgts/Ei3Sxrf2DYHNPeEzwCuZPsW5JFg+qEjyFcHdewGEnVVerQ+2/oEOF 16YAeqUk3TYN/Uf+N9jGmKZVcOtZpTiYzpFadb4Q= From: Tyler Retzlaff To: dev@dpdk.org Cc: thomas@monjalon.net, dmitry.kozliuk@gmail.com, anatoly.burakov@intel.com, Tyler Retzlaff Subject: [PATCH 0/6] add thread lifetime and attributes API Date: Thu, 9 Jun 2022 06:58:48 -0700 Message-Id: <1654783134-13303-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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. 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 | 58 +++++++++++ lib/eal/include/rte_thread.h | 177 ++++++++++++++++++++++++++++++++ lib/eal/unix/rte_thread.c | 108 ++++++++++++++++++++ lib/eal/version.map | 8 ++ lib/eal/windows/include/sched.h | 2 +- lib/eal/windows/rte_thread.c | 217 ++++++++++++++++++++++++++++++++-------- 8 files changed, 654 insertions(+), 47 deletions(-) create mode 100644 lib/eal/common/rte_thread.c