[PATCH, FYI] libstdc++: vxworks: enable gthread_yield
Jonathan Wakely
jwakely@redhat.com
Wed Jun 24 13:33:15 GMT 2026
On Wed, 24 Jun 2026 at 13:41, Alexandre Oliva <oliva@adacore.com> wrote:
>
> On Jun 24, 2026, Jonathan Wakely <jwakely@redhat.com> 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.
More information about the Libstdc++
mailing list