libstdc++: Make atomic<T*>::wait() const [PR102994]
Jonathan Wakely
jwakely@redhat.com
Thu Nov 25 21:24:00 GMT 2021
On Wed, 24 Nov 2021 at 01:27, Thomas Rodgers wrote:
>
> const qualification was also missing in the free functions for wait/wait_explicit/notify_one/notify_all. Revised patch attached.
Please tweak the whitespace in the new test:
> +test1(const std::atomic<char*> &a, char*p)
The '&' should be on the type not the variable, and there should be a
space before 'p':
> +test1(const std::atomic<char*>& a, char* p)
OK for trunk and gcc-11 with that tweak, thanks!
More information about the Libstdc++
mailing list