You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2018/02/02 02:35:01 UTC
incubator-weex git commit: * [iOS] update moduleInstance's type to
thread safe type
Repository: incubator-weex
Updated Branches:
refs/heads/master 7d1096a22 -> b94710984
* [iOS] update moduleInstance's type to thread safe type
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/b9471098
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/b9471098
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/b9471098
Branch: refs/heads/master
Commit: b94710984336b0fad87c145aaad960f53ca9bb75
Parents: 7d1096a
Author: acton393 <zh...@gmail.com>
Authored: Fri Feb 2 10:34:49 2018 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Fri Feb 2 10:34:49 2018 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m | 2 +-
ios/sdk/WeexSDK/Sources/Model/WXSDKInstance_private.h | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b9471098/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
index 45fde5f..da7625f 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
+++ b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
@@ -97,7 +97,7 @@ typedef enum : NSUInteger {
_pageName = @"";
_performanceDict = [WXThreadSafeMutableDictionary new];
- _moduleInstances = [NSMutableDictionary new];
+ _moduleInstances = [WXThreadSafeMutableDictionary new];
_styleConfigs = [NSMutableDictionary new];
_attrConfigs = [NSMutableDictionary new];
_moduleEventObservers = [WXThreadSafeMutableDictionary new];
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/b9471098/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance_private.h
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance_private.h b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance_private.h
index 93343b1..1c3090a 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance_private.h
+++ b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance_private.h
@@ -21,12 +21,13 @@
#import "WXSDKInstance.h"
#import "WXComponentManager.h"
#import "WXModuleMethod.h"
+#import "WXThreadSafeMutableDictionary.h"
@interface WXSDKInstance ()
@property (nonatomic, assign) CGFloat viewportWidth;
-@property (nonatomic, strong) NSMutableDictionary *moduleInstances;
+@property (nonatomic, strong) WXThreadSafeMutableDictionary *moduleInstances;
@property (nonatomic, strong) NSMutableDictionary *naviBarStyles;
@property (nonatomic, strong) NSMutableDictionary *styleConfigs;
@property (nonatomic, strong) NSMutableDictionary *attrConfigs;