Make objects conform to NSLocking (#851)

* Make display node, layout spec, and style conform to NSLocking so that users/subclasses can access their locks

* Update the changelog

* Align slashes

* Put it back, when we're in ASDisplayNode

* Go a little further

* Put back the changes I didn't mean to commit

* Kick the CI

* Fix yoga build

* Put back non-locking change

* Address comments from Scott
This commit is contained in:
Adlai Holler
2018-03-25 10:46:04 -07:00
committed by GitHub
parent 255aec5839
commit 0f9b1e6789
29 changed files with 461 additions and 527 deletions

View File

@@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
/**
* A layout spec is an immutable object that describes a layout, loosely inspired by React.
*/
@interface ASLayoutSpec : NSObject <ASLayoutElement, ASLayoutElementStylability, NSFastEnumeration, ASDescriptionProvider>
@interface ASLayoutSpec : NSObject <ASLayoutElement, ASLayoutElementStylability, NSFastEnumeration, ASDescriptionProvider, NSLocking>
/**
* Creation of a layout spec should only happen by a user in layoutSpecThatFits:. During that method, a