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

Add locking to revise() #846

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Add locking to revise() #846

merged 1 commit into from
Sep 25, 2024

Conversation

timholy
Copy link
Owner

@timholy timholy commented Sep 24, 2024

Fixes #845

@frankier, can you test whether this works for you? I'm guessing it's not straightforward to reliably test this.

@frankier
Copy link

I looks good to me. Locking everything (apart from sleep) definitely seems the safest approach.

I don't have any test code for this, but it seems correct. Another change related for passing through keyword arguments has snuck into the 2nd commit.

@timholy
Copy link
Owner Author

timholy commented Sep 25, 2024

I found more places to add locking, now also fixes #837

@timholy timholy merged commit 1b2dc22 into master Sep 25, 2024
15 of 17 checks passed
@timholy timholy deleted the teh/threads branch September 25, 2024 09:40
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.

Revise.revise(...) is not safe to be called from multiple threads simultaneously
2 participants