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

Improve thread safety in by changing vector<bool> to vector<int> #30

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

Natsu-Akatsuki
Copy link
Contributor

std::vector<bool> does not guarantee that different elements in the same container can be modified concurrently by different threads. (See https://en.cppreference.com/w/cpp/container/vector_bool)

@patripfr patripfr merged commit 7b90670 into ethz-asl:main Nov 12, 2024
1 check passed
@patripfr
Copy link
Collaborator

Great catch, thanks a lot!

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