mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-05-16 16:01:00 +08:00
Add comment for why lock is added.
This commit is contained in:
@@ -126,6 +126,8 @@
|
||||
CGSize oldSize = self.calculatedSize;
|
||||
[super __setNeedsLayout];
|
||||
|
||||
//Adding this lock because lock used to be held when this method was called. Not sure if it's necessary for
|
||||
//didRelayoutFromOldSize:toNewSize:
|
||||
ASDN::MutexLocker l(_propertyLock);
|
||||
[self didRelayoutFromOldSize:oldSize toNewSize:self.calculatedSize];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user