Getting pthread names
    Jan Knepper 
    jan at digitaldaemon.com
       
    Mon Apr 30 14:24:46 UTC 2018
    
    
  
I think the pthread_set_name_np(3) function is for debugging (reporting) 
purposes.
The names show up when you use 'procstat', 'top', 'ps', etc.
If you want to give a thread a name and use that name later in code why 
not keep that internally in you thread management structures/code and 
use that same name in the call to pthread_set_name_np?
ManiaC++
Jan Knepper
On 04/30/2018 07:14, Manuel Stühn 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?
>
> _______________________________________________
> 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