Transition plans: libkse->libpthread

Valentin Nechayev netch at iv.nn.kiev.ua
Sun Jun 1 00:43:26 PDT 2003


 Sat, May 31, 2003 at 01:39:59, eischen (Daniel Eischen) wrote about "Re: Transition plans: libkse->libpthread": 

DE> No :-)  In my mind, the KSE threads library was always supposed
DE> to be libpthread (note the 'p' for POSIX).  libthr is not able
DE> to be fully POSIX compat because the kernel schedules threads
DE> and the kernel doesn't conform to POSIX scheduling.  I know I'm
DE> in the minority, but I think libthr interfaces should "thr_foo()"
DE> (similar to Solaris libthread), not "pthread_foo()".  But that
DE> prevents it from being easily used as a drop-in replacement
DE> for libc_r.

Can you link one app both with libthr and libpthread? I think no ;)
You can add thr_* as alias or for any function specific to libthr,
but there are no direct reason to prohibit libthr having pthread interface.

DE> We have a mechanism for selecting the threads library that
DE> the ports system should be using (PTHREAD_LIBS); it's just
DE> not always being obeyed by some ports.

How about customizing -pthread or -lpthread flags on GCC level?
(Untested idea)


-netch-


More information about the freebsd-threads mailing list