This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [contribution] C11 threads implementation for Unix and Windows environments
- From: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- To: Sebastian Huber <sebastian dot huber at embedded-brains dot de>, Gkn Knc <gokan dot ekinci dot pro at gmail dot com>, <gcc at gcc dot gnu dot org>
- Cc: <nd at arm dot com>
- Date: Mon, 20 Feb 2017 10:43:20 +0000
- Subject: Re: [contribution] C11 threads implementation for Unix and Windows environments
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs dot Nagy at arm dot com;
- Nodisclaimer: True
- References: <CADCmEBFFdMPr56TP+8ajvPSCmkHOB0rd94_as6H0F3o3+XUMrA@mail.gmail.com> <58AA9F86.50807@embedded-brains.de>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
On 20/02/17 07:49, Sebastian Huber wrote:
> Hello Gokan,
>
> you may have a look at:
>
> https://svnweb.freebsd.org/base/head/lib/libstdthreads/
note that despite the looks this is non-portable
and non-conforming implementation, it is way better
than the posted github code, but it can still clobber
errno, leak resources (and introduces cancellation
points which may or may not be conforming depending
how posix will integrate c11)
as far as i'm aware the only c11 conforming open source
implementation is the one in musl libc (and that's not
portable to other libcs either).