-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[CPP20] Remove volatile from CondCore/Utilities #45104
Conversation
cms-bot internal usage |
@cmsbuild please test for CMSSW_14_1_CPP20_X |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45104/40432
|
A new Pull Request was created by @francescobrivio for master. It involves the following packages:
@saumyaphor4252, @perrotta, @consuegs, @francescobrivio can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@@ -325,7 +325,7 @@ cond::TestGTPerf::TestGTPerf() : Utilities("conddb_test_gt_load") { | |||
// thread helpers | |||
|
|||
// global counter for dummy thread measurements: | |||
volatile int fooGlobal = 0; | |||
int fooGlobal = 0; |
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.
I suspect this should be std::atomic<int>
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.
Thanks Vincenzo! I'll go with that then.
8727209
to
8c32195
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45104/40441
|
Pull request #45104 was updated. @cmsbuild, @francescobrivio, @consuegs, @saumyaphor4252, @perrotta can you please check and sign again. |
please test for CMSSW_14_1_CPP20_X |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8245ec/39660/summary.html Comparison SummarySummary:
|
+db |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @rappoccio, @sextonkennedy, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
@cmsbuild ping |
1 similar comment
@cmsbuild ping |
PR description:
Addressing #45072
This PR removes the only occurrence of a volatile variable in
CondCore/Utilities
.The cpp script containing such variable is not run in production and not even run as unitTest.
The
[RFC]
in the title is due to the fact that I'm not 100% sure this is the correct way of handling this, at least I could not understand if there are preferred ways to address this deprecation from the link in the original issue, but I don't have much experience with this. 😄@iarspider @VinInn any feedback is more than welcome.
PR validation:
Code compiles.
Additionally, I have run the following command:
with and without this PR and the test passes with the same result.
Backport:
Not a backport, no backport needed