Initialize mStopThread in Sensor constructor
Bug: 294653181 Bug: 294500012 Test: Presubmit Change-Id: I9c9a9119eb75e364d3969ae77248370937f1f3c5
This commit is contained in:
parent
fed7d54dfc
commit
5d346fb79c
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue