Date: Sun, 22 Oct 1995 07:05:34 +1000 (EST) From: John Birrell <cimaxp1!jb@werple.net.au> To: bde@zeta.org.au (Bruce Evans) Cc: hackers@FreeBSD.org, jb@cimlogic.com.au Subject: Re: A quick vote on pthreads PLZ Message-ID: <199510212130.HAA06203@werple.net.au> In-Reply-To: <199510210630.QAA07233@godzilla.zeta.org.au> from "Bruce Evans" at Oct 21, 95 04:30:18 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > >I believe there aren't that many changes in the base system.. > > >the diffs to libc are probably going in anyhow under #ifdef THREAD_SAFE > >.. > >so what is your vote? > > < 10 ifdefs: libc > > 100 ifdefs: ports > > I don't think the library can be made thread safe with < 100 changes. What True. > would it do with all the places that return a pointer to static storage? These fall into three categories: (1) Functions which have a *_r() reentrant equivalent like readdir_r which have extra arguments so that static storage is avoided. (2) Functions which malloc memory and return that instead. The MIT code does this in places. (3) Dunno what the solution is. > > Bruce > > -- John Birrell CIMlogic Pty Ltd jb@cimlogic.com.au 119 Cecil Street Ph +61 3 9690 9600 South Melbourne Vic 3205 Fax +61 3 9690 6650 Australia Mob +61 18 353 137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510212130.HAA06203>