On Tue, May 8, 2012 at 1:20 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Mon, May 7, 2012 at 11:16 PM, Pete Batard <p...@akeo.ie> wrote: >> On 2012.05.07 15:47, Pete Batard wrote: >>> On 2012.05.07 14:40, Xiaofan Chen wrote: >>>> As per Matin (the author of the OpenBSD backend), you can >>>> use the getthrid() syscall that returns a pid_t. >>> >>> Great. I'll give it a try and if it works, add it for the release. >> >> Seems to require linking against rthread and possibly some kernel >> options that may not be enabled. I can't seem to find a linkable version >> of getthrid() on the system I have, and issuing a syscall with >> SYS_getthrid, which is defined in syscall.h, always returns -1... >> > > I will check with Martin again on this topic. > > On the other hand, I think the enhancement on BSDs and > Mac OS X side can be done later and the current implementation > is good enough for 1.0.11 release.
Martin's answer: "This is normal, you must use an OpenBSD -current in order to have real threads enable, until 5.1 OpenBSD only has userland threads." -- 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