mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-01 12:23:20 +08:00
[ASDisplayNode] Put the thread affinity assertion back
This commit is contained in:
@@ -1518,6 +1518,7 @@ static NSInteger incrementIfFound(NSInteger i) {
|
||||
// NOTE: You must not called this method while holding the receiver's property lock. This may cause deadlocks.
|
||||
- (void)removeFromSupernode
|
||||
{
|
||||
ASDisplayNodeAssertThreadAffinity(self);
|
||||
_propertyLock.lock();
|
||||
__weak ASDisplayNode *supernode = _supernode;
|
||||
__weak UIView *view = _view;
|
||||
|
||||
Reference in New Issue
Block a user