Skip to content

Commit

Permalink
Update JReactMarker.cpp with lock
Browse files Browse the repository at this point in the history
  • Loading branch information
hakonk authored Jul 30, 2024
1 parent 9dbca94 commit e11461b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ namespace facebook::react {
void JReactMarker::setLogPerfMarkerIfNeeded() {
static std::once_flag flag{};
std::call_once(flag, []() {
std::unique_lock lock(ReactMarker::logTaggedMarkerImplMutex);
ReactMarker::logTaggedMarkerImpl = JReactMarker::logPerfMarker;
ReactMarker::logTaggedMarkerBridgelessImpl =
JReactMarker::logPerfMarkerBridgeless;
Expand Down

0 comments on commit e11461b

Please sign in to comment.