-
Notifications
You must be signed in to change notification settings - Fork 40
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
Implement CopyableMutex
and CopyableAtomic
#1398
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1398 +/- ##
==========================================
+ Coverage 89.06% 89.14% +0.08%
==========================================
Files 328 333 +5
Lines 29294 29500 +206
Branches 3262 3291 +29
==========================================
+ Hits 26090 26298 +208
+ Misses 2054 2051 -3
- Partials 1150 1151 +1 ☔ View full report in Codecov by Sentry. |
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.
1-1 with Johannes via the Atlantic, minor changes
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.
Minor reformatting left
|
They behave like
std::mutex
andstd:atomic
but also have copy constructor and copy assignment. ForCopyableAtomic
the current value is copied, forCopyableMutex
the copy constructor copies nothing and the copy assignment is a noop.