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

Thread safety issues #2816

Merged
merged 1 commit into from
Mar 13, 2014
Merged

Conversation

wddgit
Copy link
Contributor

@wddgit wddgit commented Mar 11, 2014

Mark mutable so static analyzer knows it is protected
by atomic. Fix thread safety issue in the copy constructor.
Use default memory behavior in the atomic functions.

Mark mutable so static analyzer knows it is protected
by atomic.  Fix thread safety issue in the copy constructor.
Use default memory behavior in the atomic functions.
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @wddgit (W. David Dagenhart) for CMSSW_7_1_X.

Thread safety issues

It involves the following packages:

MagneticField/Engine

@nclopezo, @cmsbuild, @anton-a, @thspeer, @slava77, @Degano 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.
@nclopezo, @ktf you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@cmsbuild
Copy link
Contributor

@@ -59,7 +59,7 @@ class MagneticField
//nominal field value
virtual int computeNominalValue() const;
mutable std::atomic<char> nominalValueCompiuted;
mutable int theNominalValue;
[[cms::thread_guard("nominalValueCompiuted")]] mutable int theNominalValue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compiuted, heh

@slava77
Copy link
Contributor

slava77 commented Mar 13, 2014

+1

for #2816 1f32b7a

jenkins ok

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_1_X IBs unless changes (tests are also fine). @nclopezo, @ktf can you please take care of it?

nclopezo added a commit that referenced this pull request Mar 13, 2014
MagneticField/Engine -- Thread safety issues
@nclopezo nclopezo merged commit 8b1d101 into cms-sw:CMSSW_7_1_X Mar 13, 2014
@wddgit wddgit deleted the eventSetupThreadSafety1 branch April 25, 2014 20:20
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

4 participants