On Tue, Jul 18, 2017 at 01:24:21PM +0100, David CARLIER wrote: > Hi. > > I sent a diff originally to a smaller audience but finally decided to post > it in the mailing list. > So it is to introduce the pthread_set_name_np's counterpart so > pthread_get_name_np. > Some softwares use it (NSPR for example) and anyway internally in my > workplace we have multiplatform needing this feature would be nice having > this for OpenBSD as well :-)
the js engine uses it: https://bugzilla.mozilla.org/show_bug.cgi?id=1298451 but nspr stopped using it or never used it, there's only a reference to pthread_set_name_np: https://hg.mozilla.org/projects/nspr/file/tip/pr/src/pthreads/ptthread.c#l1759 PR_GetThreadName (just below) returns the 'local' name value, and doesnt get it from the system. Landry