Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42a24dcc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix a deadlock in statsd."

parents 4ab17843 5c5eebca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ void GaugeMetricProducer::onConditionChangedLocked(const bool conditionMet,
        return;
    }
    for (const auto& data : allData) {
        onMatchedLogEvent(0, *data, false /*scheduledPull*/);
        onMatchedLogEventLocked(0, *data, false /*scheduledPull*/);
    }
    flushIfNeededLocked(eventTime);
}
@@ -227,7 +227,7 @@ void GaugeMetricProducer::onDataPulled(const std::vector<std::shared_ptr<LogEven
    std::lock_guard<std::mutex> lock(mMutex);

    for (const auto& data : allData) {
        onMatchedLogEvent(0, *data, true /*scheduledPull*/);
        onMatchedLogEventLocked(0, *data, true /*scheduledPull*/);
    }
}