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

Make HcalDDDGeometry thread-safe #4167

Merged

Conversation

Dr15Jones
Copy link
Contributor

Made caching of values internal to HcalDDDGeometry thread-safe. Given that the caching is done only once and kept for a long time and only one HcalDDDGeometry tends to be used at a time a std::mutex was used to synchronize the filling of the cache. This minimized the amount of code that had to be changed.

Made caching of values internal to HcalDDDGeometry thread-safe.
Given that the caching is done only once and kept for a long time
and only one HcalDDDGeometry tends to be used at a time a std::mutex
was used to synchronize the filling of the cache. This minimized
the amount of code that had to be changed.
@Dr15Jones
Copy link
Contributor Author

This is a bug fix since we already have stream based modules in CMSSW_7_1_X which use this object and therefore are not thread-safe without the fix.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 9, 2014

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

Make HcalDDDGeometry thread-safe

It involves the following packages:

Geometry/HcalTowerAlgo

@civanch, @Dr15Jones, @ianna, @mdhildreth, @cmsbuild, @nclopezo, @Degano, @ktf can you please review it and eventually sign? Thanks.
@ghellwig 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.
@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.

@ianna
Copy link
Contributor

ianna commented Jun 10, 2014

+1

@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 or unless it breaks tests. @nclopezo, @ktf can you please take care of it?

@cmsbuild
Copy link
Contributor

@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?

davidlange6 added a commit that referenced this pull request Jun 10, 2014
@davidlange6 davidlange6 merged commit ec69c1a into cms-sw:CMSSW_7_1_X Jun 10, 2014
@Dr15Jones Dr15Jones deleted the makeHcalDDDGeometryThreadSafe branch June 12, 2014 16:27
ktf added a commit to ktf/cmssw that referenced this pull request Jun 23, 2014
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