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 concurrent unordered map for thread safety #3756

Merged
merged 1 commit into from May 8, 2014

Conversation

wmtan
Copy link
Contributor

@wmtan wmtan commented May 8, 2014

Our code for ROOT6 uses a static map as a cache. This pull request replaces the std::map with tbb::coucurrent_unordered_map for thread safety. The concurrent_unordered_map is not thread safe for deletions, but that is OK since we never delete anything from the map.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 8, 2014

A new Pull Request was created by @wmtan for CMSSW_7_1_ROOT6_X.

Use concurrent unordered map for thread safety

It involves the following packages:

FWCore/Utilities

@cmsbuild, @Degano, @Dr15Jones, @ktf, @nclopezo 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.

davidlt added a commit that referenced this pull request May 8, 2014
Use concurrent unordered map for thread safety
@davidlt davidlt merged commit 57a35ee into cms-sw:CMSSW_7_1_ROOT6_X May 8, 2014
@wmtan wmtan deleted the ConcurrentUnorderedMap branch May 8, 2014 19:06
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