Skip to content
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

Changed class statics to const member data to fix thread-safety issues #1193

Merged
merged 2 commits into from
Oct 28, 2013

Conversation

Dr15Jones
Copy link
Contributor

The thread-safety checker complained about the non-const statics which
were being used to hold configuration information. These were easily
changed to const member data instead.

The thread-safety checker complained about the non-const statics which
were being used to hold configuration information. These were easily
changed to const member data instead.
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones (Chris Jones) for CMSSW_7_0_X.

Changed class statics to const member data to fix thread-safety issues

It involves the following packages:

RecoLocalMuon/DTRecHit

@nclopezo, @smuzaffar, @thspeer, @slava77 can you please review it and eventually sign? Thanks.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@ktf you are the release manager for this.

@ktf
Copy link
Contributor

ktf commented Oct 27, 2013

Does not seem to merge anymore.

Similar changes where already done to fix the statics. However,
I prefer this solutions since I was able to make the member data
const which more clearly states their purpose.
@cmsbuild
Copy link
Contributor

Pull request #1193 was updated. @nclopezo, @smuzaffar, @thspeer, @slava77 can you please check and sign again.

@nclopezo
Copy link
Contributor

@thspeer
Copy link
Contributor

thspeer commented Oct 28, 2013

+1
Tested ce8bf39 in CMSSW_7_0_X_2013-10-28-0200-1193
No difference in reco as expected, based on RelMon and reco script

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next IBs unless changes or unless it breaks tests. @ktf can you please take care of it?

ktf added a commit that referenced this pull request Oct 28, 2013
Multithreading fixes -- Changed class statics to const member data to fix thread-safety issues
@ktf ktf merged commit 4443785 into cms-sw:CMSSW_7_0_X Oct 28, 2013
EmyrClement pushed a commit to EmyrClement/cmssw that referenced this pull request Feb 14, 2024
Add Phase-2 Level-1 trigger ML MET emulator [14_0_0_pre3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants