[ASDisplayNode] Ensure all subclasses are using base class __instanceLock__ and not re-defining their own. (#2754)

* [ASDisplayNode] Ensure all subclasses are using base class __instanceLock__ and not re-defining their own.

This also moves the @package definition of the instance variable to +FrameworkPrivate instead of Internal.h,
because Internal.h should ideally not be used outside of the ASDisplayNode file setup.  This has greatly reduced
the number of imports of Internal.h.

* [ASDisplayNode] Add ASDisplayNode+FrameworkSubclasses.h to share __instanceLock__ definition.
This commit is contained in:
appleguy
2016-12-12 19:42:41 -08:00
committed by GitHub
parent ad37ecfa74
commit eeb977e145
25 changed files with 74 additions and 54 deletions
+1 -3
View File
@@ -14,8 +14,7 @@
#import <AssetsLibrary/AssetsLibrary.h>
#import "ASAvailability.h"
#import "ASDisplayNode+Subclasses.h"
#import "ASDisplayNode+FrameworkPrivate.h"
#import "ASDisplayNode+FrameworkSubclasses.h"
#import "ASDisplayNodeExtras.h"
#import "ASLog.h"
#import "ASPhotosFrameworkImageRequest.h"
@@ -84,7 +83,6 @@ typedef void(^ASMultiplexImageLoadCompletionBlock)(UIImage *image, id imageIdent
id _downloadIdentifier;
// Properties
ASDN::RecursiveMutex __instanceLock__;
BOOL _shouldRenderProgressImages;
//set on init only