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

Matheus Castanho msc@linux.ibm.com
Mon Jul 5 12:26:01 GMT 2021


Ping :)

Matheus Castanho <msc@linux.ibm.com> writes:

> 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


--
Matheus Castanho


More information about the Libstdc++ mailing list