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:
David Vacca
2019-07-15 12:32:35 -07:00
committed by Facebook Github Bot
parent 8997e9aa9c
commit 15f11f3e59
2 changed files with 2 additions and 2 deletions
@@ -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;