From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.devel
Subject: Re: add pthread_set_name_np support
Date: Sat, 27 Jun 2020 15:42:40 +0200
Message-ID:
References: <875zbcrdfv.fsf@asteroid.bittivirhe.fi> <83r1u03gtt.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202";
logging-data="104826"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: =?UTF-8?Q?Timo_Myyr=C3=A4?= ,
Emacs developers
To: Eli Zaretskii
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 27 15:43:28 2020
Return-path:
Envelope-to: ged-emacs-devel@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92)
(envelope-from )
id 1jpB78-000RAa-Qx
for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Jun 2020 15:43:26 +0200
Original-Received: from localhost ([::1]:51748 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1jpB77-0004Jb-TV
for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Jun 2020 09:43:25 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54006)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1jpB6d-0003u1-C4
for emacs-devel@gnu.org; Sat, 27 Jun 2020 09:42:55 -0400
Original-Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]:47018)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1jpB6b-0007sX-OZ; Sat, 27 Jun 2020 09:42:55 -0400
Original-Received: by mail-ot1-x343.google.com with SMTP id n24so9010206otr.13;
Sat, 27 Jun 2020 06:42:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc:content-transfer-encoding;
bh=zaBta/ttC7NKuqOOYZ9Vg8AKfQ0+Fwp6QK51EGCfz08=;
b=pUyb9O92R3YnfA9XmwdFdQRbOqIsvaG91Ie03Hp/cKAUI8GmXA1/uiIqiQa+XEzmx0
sYDjMJMsufm9Uc684S1vX6T/2rlZOJNGiEqP4LQuJChTpr2E0R59EADfGbyQ5cZp0202
qWZlRstyUcGz/V5EpJNcEEa1cgXFGzslkOlfS0uIIovVU+xLiukLONU8oLKc0CR6H3kF
C8xR9i3bUToZ45ERfVOy3hBv50K62BGvSV5F/NbzqPn4hXid9GS7Cps6y781Kh98+NCy
0yT9sTB1jDsAxTR3FGh1oYZO2joxigG7wF7Vocl5FCWiaC8lhCicWLJAhwOSbyCvJhp9
2rcw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc:content-transfer-encoding;
bh=zaBta/ttC7NKuqOOYZ9Vg8AKfQ0+Fwp6QK51EGCfz08=;
b=Zt0vNb89adJlXYQAl4rpcEg4/L1Y2Y+vFoj9w1K9nTY5TXJ1HOclhOpuwrY2WcRdPf
a0O9+YJ63zkKYuoD/hnKLPPOXIUtHOe3Jy1XiAfceg7adiH1AA9BYE22PMAOvhXCnrqR
0lISTXfFjDjwQdABZ7JcaUGmcA5q8Z/2MRDKayDbCAmHUk4NdMlRoGdPCZF/GB4iLNLQ
LxtEBygHAITXsjpbvdQAnQqFO2KanGExv6iOaVrf/TrfFUrP9UAvXwLj0rXBBZK7flsw
aFzN7Lwz0nCVF5T41BOtlIh4L8loViM4JCoZZWmwzJU0xEsEQYKrM0+ljjJmlYDSTFTa
DpmQ==
X-Gm-Message-State: AOAM530fQLzKt2s2d4nWX2s80CQ7/tTFJN/UkEAb4jwZkWn6r/zSHiip
nbKjN2zKwlaxDOTAiTMPjdOuIb5UeanwwkboER5H6y3RUm8=
X-Google-Smtp-Source: ABdhPJwasQTglZwszR2SXi68d5nU05mA+b2waAnl5nNIgnTvYDTOhy7yzXoeUCmK/MRh+50jWrQRJAZt3e41MHyBIOA=
X-Received: by 2002:a9d:665a:: with SMTP id q26mr6088798otm.174.1593265371322;
Sat, 27 Jun 2020 06:42:51 -0700 (PDT)
In-Reply-To: <83r1u03gtt.fsf@gnu.org>
Received-SPF: pass client-ip=2607:f8b0:4864:20::343;
envelope-from=p.stephani2@gmail.com; helo=mail-ot1-x343.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
That's all we know.
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=_AUTOLEARN
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Emacs development discussions."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
Xref: news.gmane.io gmane.emacs.devel:252548
Archived-At:
Am Sa., 27. Juni 2020 um 13:10 Uhr schrieb Eli Zaretskii :
>
> > From: timo.myyra@bittivirhe.fi (Timo Myyr=C3=A4)
> > Date: Sat, 27 Jun 2020 13:49:24 +0300
> >
> > While browsing the emacs code I noticed that pthread_set_name_np is not
> > supported by emacs currently. Here's simple diff to add it.
> > I'm not that well versed in autoconf, probably should check pthread_set=
_name_np
> > within the pthread_setname_np block so both won't get enabled at the sa=
me time.
> >
> > Also I'm not sure if name should be padded, quickly looking OpenBSD sou=
rces
> > didn't indicate that padding would be required. LLVM code base seems to=
pad name
> > argument to max 16 chars on FreeBSD and 32 on OpenBSD.
> >
> > Thoughts?
>
> Thanks, we already have support for pthread_setname_np in what is soon
> going to be released as Emacs 27.1. Please take a look at the
> emacs-27 branch of the Emacs Git repository.
>
This is about pthread_set_name_np, not pthread_setname_np (note the undersc=
ore).