Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Apr 2018 09:25:14 -0400
From:      Richard Yao <ryao@gentoo.org>
To:        =?utf-8?Q?Manuel_St=C3=BChn?= <freebsdnewbie@freenet.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Getting pthread names
Message-ID:  <37C69B52-808C-4F9A-B00A-679564F4BCE0@gentoo.org>
In-Reply-To: <20180430111434.GA18085@freebsd-t450.fritz.box>
References:  <20180430111434.GA18085@freebsd-t450.fritz.box>

next in thread | previous in thread | raw e-mail | index | archive | help


> On Apr 30, 2018, at 7:14 AM, Manuel St=C3=BChn <freebsdnewbie@freenet.de> w=
rote:
>=20
> Hi,
>=20
> for setting a name for pthreads i found pthread_set_name_np(3), but for re=
trieving the name i found nothing. Is there any api like pthread_getname_np f=
or FreeBSD? Or is there another way to retrieve the threads name within an a=
pplication?

The only time that I have ever seen the names listed was when attaching gdb t=
o a process on Linux and listing the threads. I have not tried it on FreeBSD=
. I suggest attaching gdb to see if it displays them. If it works, then you c=
ould look into how gdb gets them.

I hope that helps.
>=20
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"=





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37C69B52-808C-4F9A-B00A-679564F4BCE0>