Strengthen memory order for atomic<T>::wait/notify
authorThomas Rodgers <rodgert@appliantology.com>
Mon, 31 Jan 2022 21:39:44 +0000 (13:39 -0800)
committerThomas Rodgers <rodgert@appliantology.com>
Tue, 1 Feb 2022 17:04:10 +0000 (09:04 -0800)
commit07a971b28c880938bb7e070465ab8ee6ccdad1fb
tree886b29ece6dc762233e7832e28ca6f6038d22e2d
parent3ad29854f0b2b1f468ea87e8cbd2a5c5a72ba5fe
Strengthen memory order for atomic<T>::wait/notify

This matches the memory order in libc++.

libstdc++-v3/ChangeLog:
* include/bits/atomic_wait.h: Change memory order from
Acquire/Release with relaxed loads to SeqCst+Release for
accesses to the waiter's count.
libstdc++-v3/include/bits/atomic_wait.h