-
Couldn't load subscription status.
- Fork 1.4k
[hist] Implement RHistEngine::FillAtomic
#20183
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
base: master
Are you sure you want to change the base?
Conversation
Test Results 22 files 22 suites 3d 18h 42m 53s ⏱️ Results for commit 5e95c31. ♻️ This comment has been updated with latest results. |
e887602 to
2a971f1
Compare
std::atomic_ref in C++20 will offer a portable way to apply atomic operations to a referenced object, but for now implement a minimal version ourselves with compiler builtins.
|
It seems the latest code works fine to implement atomic operations on Windows 🥳 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps add a small multi-threaded (stress) test to check that the addition is indeed atomic.
This includes RBinWithError, but also user-defined bin content types.
Done (it's of course not a guarantee that everything is right since reliably testing race conditions is hard) |
No description provided.