This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v8 5/8] nptl: Add C11 threads tss_* functions
- From: Florian Weimer <fweimer at redhat dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, libc-alpha at sourceware dot org
- Date: Thu, 12 Jul 2018 22:37:59 +0200
- Subject: Re: [PATCH v8 5/8] nptl: Add C11 threads tss_* functions
- References: <1517591084-11347-1-git-send-email-adhemerval.zanella@linaro.org> <1517591084-11347-6-git-send-email-adhemerval.zanella@linaro.org> <542a0078-8a10-b0be-fbf7-ae3f8bece155@redhat.com> <7bc71183-1c78-21d8-f482-6acd04c8fd66@linaro.org>
On 07/12/2018 10:32 PM, Adhemerval Zanella wrote:
This needs a __cplusplus conditional. _Thread_local does not exist in C++. The macro has to be defined to thread_local starting with C++11.
I think we can just not define it for C++, not really checking which
version is being used.
Sounds fine to me.
Thanks,
Florian