On Tue, May 8, 2012 at 10:29 AM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Sat, May 5, 2012 at 3:18 PM, Hans de Goede <hdego...@redhat.com> wrote: >>>> libusbx is already calling pthread_setname_np() for the >>> thread it creates. >>> >>> But only for OS X I assume... >> >> Sean, maybe it would be an idea for the os dependent code to print a >> thread "name" + id when creating a thread and debugging is enabled, >> this way a user can easily find which thread-id is which thread >> in the logs? >> > > Maybe this is a good idea. > > NetBSD also has pthread_getname_np(). > http://www.daemon-systems.org/man/pthread_getname_np.3.html
But OpenBSD does not have this one... -- Xiaofan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel