libstdc++: Strengthen memory order for atomic<T>::wait/notify
authorThomas Rodgers <rodgert@appliantology.com>
Thu, 10 Feb 2022 18:12:36 +0000 (10:12 -0800)
committerThomas Rodgers <rodgert@appliantology.com>
Thu, 10 Feb 2022 18:14:36 +0000 (10:14 -0800)
commitb25a7c05f120e46a60430dcefe529c72303b7022
tree8151ca6aaa878e3447dfc95227785949e6d45b86
parentc22f3fb780775b91548e32937a3ce1095a7c72a3
libstdc++: Strengthen memory order for atomic<T>::wait/notify

This changes the memory order used in the spin wait code to match
that of libc++.

libstdc++-v3/ChangeLog:
* include/bits/atomic_wait.h (__waiter_base::_S_do_spin,
__waiter_base::_S_do_spin_v): Change memory order from relaxed
to acquire.
libstdc++-v3/include/bits/atomic_wait.h