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 CollectionIDTable use a std::mutex #125

Merged
merged 1 commit into from
Sep 4, 2020

Conversation

tmadlener
Copy link
Collaborator

@tmadlener tmadlener commented Aug 25, 2020

BEGINRELEASENOTES

  • improve CollectionIDTable
    - previously used a std::recursive_mutex which is unnecessary in this case
    - made whatever can be made const const and now use std::distance to calculate the index.
    ENDRELEASENOTES

Previously used a std::recursive_mutex which is unnecessary in this
case, since the public member functions do not call each other, so there
should not be a way where the same thread tries to lock the same mutex a
second time.

Additionally made whatever can be made const const and now use
std::distance to calculate the index.
@gaede gaede merged commit b0871af into AIDASoft:master Sep 4, 2020
@tmadlener tmadlener deleted the use-mutex branch September 7, 2020 15:03
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.

2 participants