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

Fix race condition when using ParameterMap #44

Merged
merged 2 commits into from Oct 16, 2014

Conversation

martyngigg
Copy link
Member

Fixes issue #10375

Test will have to be a code review and confirmation that the system tests are now passing.

If threads are competing to try and both check and update the map then
they will hit the appropriate PARALLEL_CRITICAL sections within the
relevant methods. The bug was that the critical sections all had different
names and so OpenMP would not block on an ::add while a ::get is being
performed. The critical secctions are renamed to reflect the what
they are protecting.
Refs #10375
@martyngigg martyngigg added this to the Release 3.3 milestone Oct 16, 2014
@peterfpeterson peterfpeterson self-assigned this Oct 16, 2014
peterfpeterson added a commit that referenced this pull request Oct 16, 2014
…race_condition

Looks good and everything appears to work. I couldn't find where m_mapAccess was defined though.
@peterfpeterson peterfpeterson merged commit 82f9294 into master Oct 16, 2014
@peterfpeterson peterfpeterson deleted the bugfix/10375_parameter_map_race_condition branch October 16, 2014 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants