Hey there,
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...
Maybe we try to detect pthread_create() on -lkse ?
/Xavier PS: I add a new pikefarm server RSN :)
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.
Le jeudi, 17 avr 2003, à 16:51 Europe/Paris, Dan Nelson a écrit :
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).
I know that... But, 5.0- is not ready yet for heavy production....
Was just an idea to gets results / stability reports about those on 5.0 :)
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.
I love that...
I will test that on my machine...
/Xavier
pike-devel@lists.lysator.liu.se