A way to build and install libpthread as 1:1 as well as M:N?

David Xu davidxu at freebsd.org
Fri Aug 6 15:22:14 PDT 2004


Daniel Eischen wrote:

>Well, it didn't add much to the library to allow either 1:1 or M:N.
>Here's a patch that lets you run in 1:1 mode if LIBPTHREAD_SYSTEM_SCOPE
>is defined in the environment.  I'm not stuck on its name, so feel
>free to suggest something else.
>
>  http://people.freebsd.org/~deischen/kse/libpthread.diffs
>
>Warning (*), you can still force 1:1 mode if you build the library
>with -DSYSTEM_SCOPE_ONLY, so be sure to remove this when rebuilding
>libpthread.
>
>(*) I think it's still useful for archs that don't run in M:N yet.
>
>  
>
Looks fine to me, please go ahead.



More information about the freebsd-threads mailing list