You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
We have to keep -setViewBlock: for the time being, or else subclasses cannot set view blocks for their superclass, since -initWithViewBlock: is a convenience initializer and cannot be a designated initializer (or else all node classes would have to provide implementations of it which is awful. The alternative is to make something like ASViewWrapperNode and ASLayerWrapperNode classes that provide those as designated initializers.
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
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: