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

Fix deadlock when event fired in callback #37

Closed
wants to merge 1 commit into from

Conversation

yb172
Copy link

@yb172 yb172 commented Oct 27, 2018

Fixes #36

Changes:

  • Do check if there is a transition going on also before acquiring event lock
  • Add test case to verify no deadlock is happening when event is fired in callback

I'm not sure if that is safe to remove second check (after acquiring stateMu lock) so I just added one more before locks.

Base automatically changed from master to main March 8, 2021 12:33
@andersfylling
Copy link

Any update on this?

@annismckenzie
Copy link
Contributor

@andersfylling you can give our forked version a try: alfaview#1. I want to upstream this but I haven't gotten around to discussing whether that's possible with @maxekman.

@maxekman
Copy link
Member

@annismckenzie Definitely possible to upstream the changes, only problem is that I have limited time for reviewing. Perhaps if you could provide a PR here and involve the interested parties in the review?

@maxekman
Copy link
Member

Further discussion, see: #43

@annismckenzie
Copy link
Contributor

@annismckenzie Definitely possible to upstream the changes, only problem is that I have limited time for reviewing. Perhaps if you could provide a PR here and involve the interested parties in the review?

Sounds like a plan! All 3 commits I did in the in-repo pull request for one of my team mates to review can be pulled into their own PR individually (they all have a passing test suite). I'll send the first later today. Thank you for being open to contributions! 🎉

@maxekman
Copy link
Member

maxekman commented Oct 1, 2022

Should be fixed with #88, closing this.

@maxekman maxekman closed this Oct 1, 2022
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.

Deadlock when event is fired in callback
4 participants