Re: [committed] libstdc++: Fix __thread_yield for non-gthreads targets

2021-02-19 Thread Jonathan Wakely via Gcc-patches
On 15/02/21 16:13 +, Jonathan Wakely wrote: The __gthread_yield() function is only defined for gthreads targets, so check _GLIBCXX_HAS_GTHREADS before using it. Also reorder __thread_relax and __thread_yield so that the former can use the latter instead of repeating the same preprocessor che

[committed] libstdc++: Fix __thread_yield for non-gthreads targets

2021-02-15 Thread Jonathan Wakely via Gcc-patches
The __gthread_yield() function is only defined for gthreads targets, so check _GLIBCXX_HAS_GTHREADS before using it. Also reorder __thread_relax and __thread_yield so that the former can use the latter instead of repeating the same preprocessor checks. libstdc++-v3/ChangeLog: * include/b