From issues-return-62353-archive-asf-public=cust-asf.ponee.io@arrow.apache.org Mon May 3 20:44:03 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 7FBA8180181 for ; Mon, 3 May 2021 22:44:03 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id ABDC83F2ED for ; Mon, 3 May 2021 20:44:02 +0000 (UTC) Received: (qmail 59102 invoked by uid 500); 3 May 2021 20:44:02 -0000 Mailing-List: contact issues-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@arrow.apache.org Delivered-To: mailing list issues@arrow.apache.org Received: (qmail 59058 invoked by uid 99); 3 May 2021 20:44:02 -0000 Received: from mailrelay1-he-de.apache.org (HELO mailrelay1-he-de.apache.org) (116.203.21.61) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2021 20:44:02 +0000 Received: from jira2-he-de.apache.org (jira2-he-de.apache.org [168.119.33.54]) by mailrelay1-he-de.apache.org (ASF Mail Server at mailrelay1-he-de.apache.org) with ESMTPS id EB9A23E8C8 for ; Mon, 3 May 2021 20:44:00 +0000 (UTC) Received: from jira2-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira2-he-de.apache.org (ASF Mail Server at jira2-he-de.apache.org) with ESMTP id 1C65FC807FF for ; Mon, 3 May 2021 20:44:00 +0000 (UTC) Date: Mon, 3 May 2021 20:44:00 +0000 (UTC) From: "Ben Kietzman (Jira)" To: issues@arrow.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ARROW-12641) [C++] Provide thread id accessors MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ben Kietzman created ARROW-12641: ------------------------------------ Summary: [C++] Provide thread id accessors Key: ARROW-12641 URL: https://issues.apache.org/jira/browse/ARROW-12641 Project: Apache Arrow Issue Type: New Feature Components: C++ Reporter: Ben Kietzman Assignee: Ben Kietzman Fix For: 5.0.0 Sometimes, a worker thread must identify its thread id within a ThreadPool (for example, to support safe concurrent access to per-thread state). We could use {{std::this_thread::get_id()}} for this, but this is less convenient for indexing into a container of per-thread state. -- This message was sent by Atlassian Jira (v8.3.4#803005)