-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Locking on isSynchronous is avoidable and sometimes deadlocks. #64
Comments
wondering does it related to #66 |
We have to keep In any case, yeah let's use Obj-C or c11 atomics. Obj-C is slightly faster but we should prefer whichever gives us the cleanest code. @appleguy |
Fixed in #89 |
I attempted converting it to a const flag, but there are a couple places this doesn't work - mainly the setViewBlock: method (can we get rid of those / why do they exist?)
It would work for all use cases to convert it to a std::atomic.
Unless we make a change, there does exist a scenario where we can deadlock due to hitting isSynchronous.
The text was updated successfully, but these errors were encountered: