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

[ASDisplayNode] Improve thread-safety of didExitHierarchy #trivial #916

Merged
merged 1 commit into from
May 11, 2018

Conversation

nguyenhuy
Copy link
Member

Since didExitHierarchy is called without the node's instance lock being held, the lock must be acquired before accessing pendingInterfaceState.

Since `didExitHierarchy` is called without the node's instance lock being held, the lock must be acquired before accessing `pendingInterfaceState`.
@nguyenhuy nguyenhuy changed the title Improve thread-safety of ASDisplayNode's didExitHierarchy #trivial [ASDisplayNode] Improve thread-safety of didExitHierarchy #trivial May 10, 2018
@nguyenhuy
Copy link
Member Author

Thanks, @maicki.

@nguyenhuy nguyenhuy merged commit 970ebd9 into master May 11, 2018
@appleguy
Copy link
Member

Thanks for the fix!

@appleguy appleguy deleted the HN-didExitHierarchy-locking branch May 13, 2018 06:12
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

3 participants