> It is actually unclear to me why -base should try to work with pthreads > directly. I would expect it to strictly work with the objc_thread functions. > I believe the reason why it happens to work most of the time is because objc > is commonly configured to use pthreads. But maybe we need to work around > some issues...
I've some into this one late, but it caught my interest as I am also having problems with FreeBSD ObjC and threads, but which is unrelated to GNUstep as I am just using bare Objective-C for programming in my work environment. Have been trying to track down a problem for wweeks, and it seems to me that there is something going on inside libobjc which makes it interact with threads wrongly. Whether thats a FreeBSD issue or a libobjc issue I havent been able to determine though. I found that linking against libthr instead of pthread helps - but libthr is not stable enough for production use apparently, so I only use it when I have to for debugging purposes. The above might be totally spurious as I'm not sure what the original problem being discussed is - but I wanted to say that it might be entirely unrelated to GNUstep! -bat. _______________________________________________ Bug-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gnustep
