Date: Sat, 17 Dec 2011 00:31:26 +0200 From: Kostik Belousov <kostikbel@gmail.com> To: Ed Schouten <ed@80386.nl> Cc: threads@freebsd.org, arch@freebsd.org Subject: Re: [Patch] C1X threading support Message-ID: <20111216223126.GX50300@deviant.kiev.zoral.com.ua> In-Reply-To: <20111216221959.GB1771@hoeg.nl> References: <20111216214913.GA1771@hoeg.nl> <20111216220914.GW50300@deviant.kiev.zoral.com.ua> <20111216221959.GB1771@hoeg.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--GJTx2ed35C3D1GF1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 16, 2011 at 11:19:59PM +0100, Ed Schouten wrote: > Hello Kostik, >=20 > * Kostik Belousov <kostikbel@gmail.com>, 20111216 23:09: > > If application that does not use the new interface supposed to be > > able to implement function with new names, then the not-underscored > > symbols must be weak. >=20 > For example when an application wants to implement its own functions > that are named thrd_*(), for example? Yes. The realistic example is the code written to C99/SUSv4 conformance that happens to define thrd_<something>. It might be that easiest solution is to put the functions into separate library, besides defining them weak. >=20 > > pthread_cond_init does not set errno, it returns error. > > There are several more instances of such errno use in the patch. >=20 > Oh wait. It returns the errno. Ugh. Fixed! >=20 > > Do you have reference to the draft ? >=20 > Yes, sure: >=20 > http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf BTW, it looks not very useful to add a bunch of threading functions without at least trying to specify the memory model. --GJTx2ed35C3D1GF1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk7rxr4ACgkQC3+MBN1Mb4jqNwCff+EFGr2qR0uU9jPSjtCQaTA5 JfcAoJa6EjoIPT4sttlyWCQ4n8qXEG/o =LlXk -----END PGP SIGNATURE----- --GJTx2ed35C3D1GF1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111216223126.GX50300>