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

Use initializer list to safely initialize a static in ELseverityLevel #4426

Conversation

Dr15Jones
Copy link
Contributor

The function loadMap is callable from multiple threads and therefore the initialization of the map must be done in a safe manner. Using an initializer list will guarantee that the compiler will make the initialization of the map thread-safe.
This was found by the static analyzer.

The function loadMap is callable from multiple threads and therefore the initialization of the map must be done in a safe manner. Using an initializer list will guarantee that the compiler will make the initialization of the map thread-safe.
This was found by the static analyzer.
@cmsbuild
Copy link
Contributor

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

Use initializer list to safely initialize a static in ELseverityLevel

It involves the following packages:

FWCore/MessageLogger

@cmsbuild, @Degano, @Dr15Jones, @ktf, @nclopezo can you please review it and eventually sign? Thanks.
@wddgit, @wmtan this is something you requested to watch as well.
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.

@Dr15Jones
Copy link
Contributor Author

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes or unless it breaks tests.

davidlange6 added a commit that referenced this pull request Jun 27, 2014
…ityLevel

Use initializer list to safely initialize a static in ELseverityLevel
@davidlange6 davidlange6 merged commit d9c40fb into cms-sw:CMSSW_7_2_X Jun 27, 2014
@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@Dr15Jones Dr15Jones deleted the threadSafeInitOfStaticELseverityLevel branch June 30, 2014 18:51
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

3 participants