In the last episode (Apr 17), Xavier Beaudouin said:
On FreeBSD 5.0, we can have KSE (Kernel Threads) with posix interface with linking with -lkse...
Can we add that on Pike 7.5 automatically ? and if so, how, because threads detector in configure.in is somewhat confusing...
Beware - neither libkse nor libthr (yes, FreeBSD jumped from one threads library to three :) are really stable yet. There are patches to libkse that let it pass more threads tests than the old libc_r library, but they havn't been committed. libthr locks my system up hard (can't even break into the serial console debugger).
Maybe we try to detect pthread_create() on -lkse ?
I think what will happen is FreeBSD will install libc_r, libkse, and libthr, and the user can decide which threads library to use by either creating a symlink from one of those to libpthread.so, or by using the new libmap.conf file to decide on a per-program basis which library "libpthread.so" will resolve to. All three libraries are ABI compatible, so you can switch libraries after the program is built.