Lock the pulling alarm handler.

Test: statsd test

BUG: b/77906846

Change-Id: I414771a20babfb2324e47dd8ddbb44eaa088d199
This commit is contained in:
Yangster
2018-04-12 11:04:29 -07:00
parent d532ff3397
commit 6df5fcc126

View File

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