Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ASImageNode] Fix a threading issue which can cause a display comple…
…tion block to never be executed (TextureGroup#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.
- Loading branch information