Bug#699781: kFreeBSD/18

Petr Salinger Petr.Salinger at seznam.cz
Tue Feb 5 11:18:38 UTC 2013


>
> For the pthread_setname thing we, of course, need a more elegant
> solution. Hopefully someone with eglibc/kfreebsd knowledge can help?
> seems we are missing pthread_setname_np() which exists on linux (at
> least I couldn't find the header defining it).

For properly setting thread name, we have to use syscall SYS_thr_set_name

and the PlatformThread::CurrentId()
have to be modified to use

     long lwpid;
     syscall(SYS_thr_self, &lwpid);
     return lwpid;

for us.

Petr



More information about the pkg-mozilla-maintainers mailing list