-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Made file access in SimHitPrinter thread safe #9744
Made file access in SimHitPrinter thread safe #9744
Conversation
Since multiple instances of SimHitPrinter all share the same output file via a static and those instances can be running on different threads the file has to be protected by a mutex. In addition, the creation of the file itself is done in a thread safe way.
A new Pull Request was created by @cmsbuild for CMSSW_7_6_X. Made file access in SimHitPrinter thread safe It involves the following packages: SimG4CMS/Muon @cmsbuild, @civanch, @mdhildreth can you please review it and eventually sign? Thanks. |
please test |
+1 |
The tests are being triggered in jenkins. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs or unless it breaks tests. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs or unless it breaks tests. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs or unless it breaks tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar |
+1 |
Made file access in SimHitPrinter thread safe
Since multiple instances of SimHitPrinter all share the same output
file via a static and those instances can be running on different
threads the file has to be protected by a mutex. In addition,
the creation of the file itself is done in a thread safe way.
Automatically ported from CMSSW_7_5_X #9723 (original by @Dr15Jones).