Merge "Lock the pulling alarm handler." into pi-dev

This commit is contained in:
Yang Lu
2018-05-02 18:25:18 +00:00
committed by Android (Google) Code Review

View File

@@ -502,6 +502,7 @@ void StatsLogProcessor::WriteDataToDisk(bool isShutdown) {
}
void StatsLogProcessor::informPullAlarmFired(const int64_t timestampNs) {
std::lock_guard<std::mutex> lock(mMetricsMutex);
mStatsPullerManager.OnAlarmFired(timestampNs);
}