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

Better locking in iterators #10

Open
joruof opened this issue Apr 10, 2023 · 0 comments
Open

Better locking in iterators #10

joruof opened this issue Apr 10, 2023 · 0 comments

Comments

@joruof
Copy link
Collaborator

joruof commented Apr 10, 2023

Currently the iterator returned by the __iter__ method in the python bindings does only hold the read_lock during construction.
This could be modified so the iterator does hold the lock during its entire lifetime, which would prevent other processes from modifying the list during iteration.

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

No branches or pull requests

1 participant