@@ -586,6 +586,7 @@ - (CGSize)measure:(CGSize)constrainedSize
586586
587587- (ASLayout *)measureWithSizeRange : (ASSizeRange)constrainedSize
588588{
589+ NSLog (@" About to measure lock for %@ " , self);
589590 ASDN::MutexLocker l (_propertyLock);
590591 return [self __measureWithSizeRange: constrainedSize];
591592}
@@ -666,6 +667,7 @@ - (void)setDisplaysAsynchronously:(BOOL)displaysAsynchronously
666667- (BOOL )shouldRasterizeDescendants
667668{
668669 ASDisplayNodeAssertThreadAffinity (self);
670+ NSLog (@" About to descendants lock for %p , %@ " , self, [self class ]);
669671 ASDN::MutexLocker l (_propertyLock);
670672 return _flags.shouldRasterizeDescendants ;
671673}
@@ -722,6 +724,7 @@ - (void)displayImmediately
722724- (void )recursivelyDisplayImmediately
723725{
724726 ASDN::MutexLocker l (_propertyLock);
727+
725728 for (ASDisplayNode *child in _subnodes) {
726729 [child recursivelyDisplayImmediately ];
727730 }
@@ -730,12 +733,12 @@ - (void)recursivelyDisplayImmediately
730733
731734- (void )__setNeedsDisplay
732735{
736+ ASDN::MutexLocker l (_propertyLock);
737+ NSLog (@" About to find parent rasterize for %@ " , self);
733738 ASDisplayNode *rasterizedContainerNode = [self __rasterizedContainerNode ];
734739 if (rasterizedContainerNode) {
735740 [rasterizedContainerNode setNeedsDisplay ];
736741 } else {
737- [_layer setNeedsDisplay ];
738-
739742 if (_layer && !self.isSynchronous && self.displaysAsynchronously ) {
740743 [ASDisplayNode scheduleNodeForDisplay: self ];
741744 }
0 commit comments