[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add pthread_set_name_np support
From: |
Eli Zaretskii |
Subject: |
Re: add pthread_set_name_np support |
Date: |
Sat, 27 Jun 2020 14:10:06 +0300 |
> From: timo.myyra@bittivirhe.fi (Timo Myyrä)
> 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 same
> time.
>
> Also I'm not sure if name should be padded, quickly looking OpenBSD sources
> 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.