Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2018 18:05:23 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Willem Jan Withagen <wjw@digiware.nl>
Cc:        Yuri Pankov <yuripv@yuripv.net>, FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Write a version for pthread_get_name_np
Message-ID:  <20180813150523.GF2340@kib.kiev.ua>
In-Reply-To: <bc7cf9c0-1739-8b6d-7fc1-cfa469659d2a@digiware.nl>
References:  <7fa2b876-9397-da2b-cb29-56badf11b66d@ecoracks.nl> <42689feb-9bd4-429b-63d7-b9193123ee47@digiware.nl> <20180812205835.GB2340@kib.kiev.ua> <bdf7e3bd-e33f-019e-c6ff-a10e927e3a01@digiware.nl> <20180812225726.GC2340@kib.kiev.ua> <c99da03d-596f-9773-ab5b-df5c9d30fa27@digiware.nl> <20180812234800.GD2340@kib.kiev.ua> <34158602-9806-0553-af1c-e8dacbb0ffa0@yuripv.net> <bc7cf9c0-1739-8b6d-7fc1-cfa469659d2a@digiware.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 13, 2018 at 10:16:30AM +0200, Willem Jan Withagen wrote:
> I guess that'll work.
> 
> Although I was following the procstat way and when there was no name set 
> we get a '-'. But if Konstatin is going to write it, it is his prerogative.
> And I would expect it to be equivalent partner of thr_{set,get}_name as 
> well. But that could be added later in the man page.
There is no thr_get_name(2).

The implementation is available at https://reviews.freebsd.org/D16702.
I do not like void return types for both pthread_get_name_np() and
pthread_set_name_np().



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180813150523.GF2340>