[Bug libstdc++/106772] atomic<T>::wait shouldn't touch waiter pool if used platform wait

valera.mironow at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Sep 20 07:47:42 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106772

--- Comment #5 from Mkkt Bkkt <valera.mironow at gmail dot com> ---
Single reason why I want to use atomic::wait/notify is cross platform api for
futex, wait/wake on address, ulock, etc
Not because I need YOU decide instead of me how many spins, or other
optimization I need.

boost::atomic already do this.

Why do you cannot make same?


More information about the Gcc-bugs mailing list