Getting pthread names
Richard Yao
ryao at gentoo.org
Mon Apr 30 13:25:23 UTC 2018
> On Apr 30, 2018, at 7:14 AM, Manuel Stühn <freebsdnewbie at freenet.de> wrote:
>
> Hi,
>
> for setting a name for pthreads i found pthread_set_name_np(3), but for retrieving the name i found nothing. Is there any api like pthread_getname_np for FreeBSD? Or is there another way to retrieve the threads name within an application?
The only time that I have ever seen the names listed was when attaching gdb to 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 could look into how gdb gets them.
I hope that helps.
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
More information about the freebsd-hackers
mailing list