kqueue & pthread
Dmitry Agaphonov
rzhe at agava.com
Sun Feb 20 06:40:32 PST 2005
On Wed, 9 Feb 2005 10:51:36 -0500
Brian Fundakowski Feldman <green at freebsd.org> wrote:
BFF> The LinuxThreads library seems to be the best-supported way. I don't think
BFF> that there should be legal/licensing issues using it.
Unfortunatelly, I can't use the LinuxThreads library, it simply does not
compile on FreeBSD 4.10 (and I assume that on latest 4.x too) with
gcc-3.4.4. Errors appear when it's building code from /usr/src tree with
the newer compiler.
FreeBSD 4.x is a mandatory target platform and using gcc-3.4 is a strong
wish. So, I'm going to have kernel threads via rfork_thread(3) and the
main question I stuck on is which libc functions I need to wrap to make
them thread-safe and reentrant on multiprocessor systems, since
rfork_thread(3)s are created with RFMEM flag and libc_r is not used.
Could one give ideas or point where to read?
Thanks!
More information about the freebsd-hackers
mailing list