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

Fixes a potential deadlock; it's not safe to message likely super nod… #56

Merged
merged 3 commits into from
Apr 24, 2017

Conversation

garrettmoon
Copy link
Member

…es while holding the lock.

Copy link
Member

@nguyenhuy nguyenhuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be simpler if we enumerate twice: first time to grab eventTargetActionArrays with the lock held and second time to consume them without the lock?

@garrettmoon
Copy link
Member Author

@nguyenhuy That's a better idea, will update.

@garrettmoon
Copy link
Member Author

@nguyenhuy hmmm, that actually increases the complexity of the code quite a bit. I need to keep 2 extra arrays around because responder could potentially be nil (so I can't use the original eventTargetActionArray). You think it's worth it?

@nguyenhuy
Copy link
Member

nguyenhuy commented Apr 21, 2017

@garrettmoon Can we have a single array of ASControlTargetAction? I might be missing something here. It's your call at this point :P

Copy link
Member

@nguyenhuy nguyenhuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

None yet

2 participants