mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Make Binding.commitMutex_ recursive
Summary: This diff makes the Binding.commitMutex_ recursive, for more context see: D15995971 Reviewed By: shergin Differential Revision: D16187220 fbshipit-source-id: 559d06e1e4a83d7beee13f41b4549db2b91983e5
This commit is contained in:
committed by
Facebook Github Bot
parent
8997e9aa9c
commit
15f11f3e59
@@ -450,7 +450,7 @@ local_ref<JMountItem::javaobject> createCreateMountItem(
|
||||
|
||||
void Binding::schedulerDidFinishTransaction(
|
||||
MountingCoordinator::Shared const &mountingCoordinator) {
|
||||
std::lock_guard<std::mutex> lock(commitMutex_);
|
||||
std::lock_guard<std::recursive_mutex> lock(commitMutex_);
|
||||
|
||||
SystraceSection s("FabricUIManagerBinding::schedulerDidFinishTransaction");
|
||||
long finishTransactionStartTime = getTime();
|
||||
|
||||
@@ -32,7 +32,7 @@ class Binding : public jni::HybridClass<Binding>, public SchedulerDelegate {
|
||||
std::shared_ptr<Scheduler> scheduler_;
|
||||
std::mutex schedulerMutex_;
|
||||
|
||||
std::mutex commitMutex_;
|
||||
std::recursive_mutex commitMutex_;
|
||||
|
||||
float pointScaleFactor_ = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user