Skip to content

Conversation

@hahnjo
Copy link
Member

@hahnjo hahnjo commented Oct 23, 2025

No description provided.

@hahnjo hahnjo self-assigned this Oct 23, 2025
@hahnjo hahnjo added the in:Hist label Oct 23, 2025
@github-actions
Copy link

github-actions bot commented Oct 23, 2025

Test Results

    22 files      22 suites   3d 22h 32m 1s ⏱️
 3 703 tests  3 702 ✅ 0 💤 1 ❌
79 515 runs  79 514 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit b730be7.

♻️ This comment has been updated with latest results.

@hahnjo hahnjo force-pushed the hist-atomic branch 2 times, most recently from e887602 to 2a971f1 Compare October 24, 2025 08:08
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.
This includes RBinWithError, but also user-defined bin content types.
@hahnjo
Copy link
Member Author

hahnjo commented Oct 24, 2025

It seems the latest code works fine to implement atomic operations on Windows 🥳

@hahnjo hahnjo marked this pull request as ready for review October 24, 2025 12:04
@hahnjo hahnjo requested a review from bellenot as a code owner October 24, 2025 12:04
Copy link
Contributor

@jblomer jblomer left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants