Huy Nguyen e745aded7d
[ASImageNode] Fix a threading issue which can cause a display completion block to never be executed (#1148)
- Clear _displayCompletionBlock while we still have the node's instance lock. Because it may not be the same block by the time the lock is reacquired. In other words, it can happen that another thread sets a new display block after this thread releases the lock but before it reacquires it. And we don't want to clear out the new block.
- Reduce a lock/unlock pair which should help perf a tiny bit.
2018-11-04 16:28:48 -08:00
..
2018-10-29 07:35:45 -07:00
2018-11-03 12:32:15 -07:00
2018-11-03 12:32:15 -07:00
2018-10-29 16:07:50 -07:00
2017-02-26 18:14:13 -08:00