-
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
Thread safety improvement BeamHaloProducer #6675
Conversation
This adds declaration of a SharedResource to the BeamHaloProducer. The shared resources are global variables the module uses. This ensures thread safety in the case where multiple BeamHaloProducers are run in the same job (practically speaking this probably never happens). More importantly, the static code analyzer reported a thread safety problem. A future version of the static analyzer will not report the problem if BeamHaloProducer is a one module with a shared resource. So this should eliminate the warning.
A new Pull Request was created by @cmsbuild for CMSSW_7_4_X. Thread safety improvement BeamHaloProducer It involves the following packages: GeneratorInterface/BeamHaloGenerator @vciulli, @covarell, @thuer, @cmsbuild, @nclopezo, @bendavid can you please review it and eventually sign? Thanks. |
+1 |
is this PR obsolete? Seems to trivial to be pending for two weeks |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_4_X IBs unless changes (tests are also fine). This pull request will be automatically merged. |
Thread safety improvement BeamHaloProducer
This adds a declaration of a SharedResource to the
BeamHaloProducer. The shared resources are global
variables the module uses. This ensures thread safety
in the case where multiple BeamHaloProducers are run
in the same job (practically speaking this probably
never happens).
More importantly, the static code analyzer reported a
thread safety problem. A future version of the static
analyzer will not report the problem if
BeamHaloProducer is a one module with a shared resource.
So this should eliminate the warning.
Automatically ported from CMSSW_7_3_X #6414