[PATCH] libstdc++: Only use __gthread_yield if gthreads is available

Matheus Castanho msc@linux.ibm.com
Wed Jun 30 12:40:54 GMT 2021


Jonathan Wakely <jwakely.gcc@gmail.com> writes:

> On Tue, 29 Jun 2021, 22:09 Matheus Castanho via Libstdc++, <libstdc++@gcc.gnu.org> wrote:
>
>  When building libstdc++ with --disable-threads g++ complains that no
>  __gthread_yield declaration is available. The code should check
>  _GLIBCXX_HAS_GTHREADS before trying to use it.
>
> Yes, thanks for the patch. Do you have write access? If not I'll commit it tomorrow.
>

No, I don't. Could you do it for me?

Thanks,
Matheus Castanho


More information about the Libstdc++ mailing list