Conversation
Codecov Report
@@ Coverage Diff @@
## main #890 +/- ##
==========================================
+ Coverage 30.20% 36.22% +6.02%
==========================================
Files 452 199 -253
Lines 39208 11811 -27397
==========================================
- Hits 11841 4279 -7562
+ Misses 27367 7532 -19835
|
|
@juangpc could you have a look at this one? |
|
Nice. |
|
Hi Ruben, the code looks fine. A few minor comments, only because sometimes you share that you'd like to discuss and learn about code.
|
|
Thank's for the comments! Here are some thoughts:
|
|
Hi, I think atomic variables are a valuable thing to know about. If you don't have time, let me just say that they are a set of variables provided by some languages that already implement some kind of protection mechanism in case different want to read/write a variable at the same time. So it is something else different from a mutex, but it solves the same problem. And it is faster (than mutexed code). Other comments are there to try to help you (and me) improve your code (and mine). |
…orUpdate of HDU return bool to indicate if things have changed
|
@juangpc I just read up on atomic variables. Very cool. So instead of: I could just do: This is pretty neat. Especially since regarding cppreference, this could be used for custom classes and pointers as well. So would you recommend converting bigger objects (QVector, FiffInfo, Eigen::Matrix) to atomic variables as well? |
This PR follows up on #884, cleans up some stuff and improves the documentation. Further, I tried to apply better mutexing in the hpi plugin.