tech-userlevel archive

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

Re: Moving pthread_(cond|mutex) to libc



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.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index