Merge "Initialize mStopThread in Sensor constructor" into main

This commit is contained in:
Treehugger Robot
2023-08-24 19:43:59 +00:00
committed by Gerrit Code Review

View File

@@ -40,6 +40,7 @@ Sensor::Sensor(ISensorsEventCallback* callback)
: mIsEnabled(false),
mSamplingPeriodNs(0),
mLastSampleTimeNs(0),
mStopThread(false),
mCallback(callback),
mMode(OperationMode::NORMAL) {
mRunThread = std::thread(startThread, this);