tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Moving pthread_(cond|mutex) to libc

In article <>,
David Holland  <> wrote:
>On Fri, Jan 25, 2013 at 04:31:54PM +0000, Emmanuel Dreyfus wrote:
> > IMO the bug here is NetBSD enforcing a petty rule that breaks software,
> > fix nothing, and has no workaround (yet).
>It is not a petty rule; there's a good reason for it.
>That said, it's a fair point. If I'm writing a library, and I want the
>library to be safely usable by both threaded and unthreaded programs,
>is there anything I can do? Right now it seems the only fully viable
>approach is to build two versions and hope I can figure out how to get
>clients to link the right one, which is pretty sketchy.

Yes, I don't buy you can't do that. It is convenient for us if you don't
do that, so we forbid it. We mighrt be able to find a good technical solution
for this.


Home | Main Index | Thread Index | Old Index