mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fabric: Bunch of small changes in ContextContainer
Summary: So, changes: * Correctness checks only in debug mode (codesize win?); * `registerInstance` marked as const (because it's thread safe); * ContextContainer::Shared also enforces constness; * Using faster better::map; * Using shared/RW mutex instead of regular one; * SharedContextContainer got removed. Reviewed By: sahrens Differential Revision: D14920284 fbshipit-source-id: f0f8d970e7fae79a1abe3bc32827db9fd2d17e13
This commit is contained in:
committed by
Facebook Github Bot
parent
cdf3343dd0
commit
184cfd5594
@@ -97,7 +97,7 @@ void Binding::installFabricUIManager(
|
||||
jni::alias_ref<jobject> reactNativeConfig) {
|
||||
javaUIManager_ = make_global(javaUIManager);
|
||||
|
||||
SharedContextContainer contextContainer =
|
||||
ContextContainer::Shared contextContainer =
|
||||
std::make_shared<ContextContainer>();
|
||||
|
||||
auto sharedJSMessageQueueThread =
|
||||
|
||||
Reference in New Issue
Block a user