On Wed, 24 Jun 2026 at 13:41, Alexandre Oliva <[email protected]> wrote:
>
> On Jun 24, 2026, Jonathan Wakely <[email protected]> wrote:
>
> > What do you think?
>
> No opposition from me.  Maybe it would make more sense to require any
> gthreads implementation to offer gthread_yield, so that libstdc++ could
> call it unconditionally.
>
> Worst case, it could be a do-nothing implementation.

According to libgcc/gthr.h it's already required if __GTHREADS_CXX0X
is defined, and libstdc++ defines _GLIBCXX_HAS_GTHREADS when
__GTHREADS_CXX0X is defined. So maybe we should replace uses of
USE_SCHED_YIELD with HAS_GTHREADS.

Reply via email to