]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Fix std::atomic<std::shared_ptr<T>> for AIX [PR104101]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 18 Jan 2022 21:15:05 +0000 (21:15 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 19 Jan 2022 00:58:21 +0000 (00:58 +0000)
commitc3861f79859d96777f86a24261fe639538fd2e1c
treec3b10095322d8b1e32c51dd05da50af262f35511
parent7a761ae658967dab59dca691373e3ea10707217a
libstdc++: Fix std::atomic<std::shared_ptr<T>> for AIX [PR104101]

This fixes an on AIX.

The lock function currently just spins, which should be changed to use
back-off, and maybe then _M_val.wait(__current) when supported.

libstdc++-v3/ChangeLog:

PR libstdc++/104101
* include/bits/shared_ptr_atomic.h (_Sp_atomic::_Atomic_count::lock):
Only use __thread_relax if __cpp_lib_atomic_wait is defined.
libstdc++-v3/include/bits/shared_ptr_atomic.h
This page took 0.061585 seconds and 6 git commands to generate.