-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-45144: [C++] use std::atomic<std::shared_ptr> instead of std::atomic_load()/std::atomic_store() #45145
base: main
Are you sure you want to change the base?
Conversation
@github-actions crossbow submit test-debian-experimental-cpp-gcc-15 |
Revision: 8b11038 Submitted crossbow builds: ursacomputing/crossbow @ actions-c4407390b8
|
This isn't working yet — the change(s) needed aren't just substituting. Looking at some examples and https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2869r0.pdf I need to change the type of result to be wrapped by But haven't quite found the right place for that yet. Separately + on the CRAN front, I actually think we might be ok to submit something not compatible with C++20 (but would love a double check of my understanding here 🙏 @kou ): from the log output I see at the end:
Am I reading the
|
Right. |
Rationale for this change
Replace deprecated calls to quite warnings (turned into errors) on GCC15
What changes are included in this PR?
not actually this simple.s/atomic_(load|store)/atomic/g
Are these changes tested?
Yes
Are there any user-facing changes?
There should be none.
std::atomic<std::shared_ptr>
instead ofstd::atomic_load()
/std::atomic_store()
#45144