[Patch] C1X threading support

Kostik Belousov kostikbel at gmail.com
Fri Dec 16 22:31:32 UTC 2011


On Fri, Dec 16, 2011 at 11:19:59PM +0100, Ed Schouten wrote:
> Hello Kostik,
> 
> * Kostik Belousov <kostikbel at 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.
> 
> 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.
> 
> > pthread_cond_init does not set errno, it returns error.
> > There are several more instances of such errno use in the patch.
> 
> Oh wait. It returns the errno. Ugh. Fixed!
> 
> > Do you have reference to the draft ?
> 
> Yes, sure:
> 
> 	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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20111216/c3577581/attachment.pgp


More information about the freebsd-threads mailing list