Skip to content

Add comment explaining race condition#58

Merged
HeinrichApfelmus merged 2 commits intoHeinrichApfelmus:masterfrom
tomjaguarpaw:race-condition-comment
Apr 25, 2026
Merged

Add comment explaining race condition#58
HeinrichApfelmus merged 2 commits intoHeinrichApfelmus:masterfrom
tomjaguarpaw:race-condition-comment

Conversation

@tomjaguarpaw
Copy link
Copy Markdown
Contributor

@tomjaguarpaw tomjaguarpaw commented Apr 23, 2026

It took me a while to understand what the race condition would be. I think this is it! If so it might be helpful to future readers to explain it.

(By the way, I wonder of STM could fix the race condition.)

@tomjaguarpaw
Copy link
Copy Markdown
Contributor Author

Ah, I see @konsumlamm has a PR addressing this, which is even easier than STM (uses an MVar for locking): #55

@HeinrichApfelmus HeinrichApfelmus merged commit 539b4df into HeinrichApfelmus:master Apr 25, 2026
11 checks passed
@HeinrichApfelmus
Copy link
Copy Markdown
Owner

That's it, indeed. Thank you!

@tomjaguarpaw tomjaguarpaw deleted the race-condition-comment branch April 25, 2026 21:26
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