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

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

Merge "Avoid potential race condition in test setup"

parents 54868fe8 13534683
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -130,8 +130,8 @@ void SensorsHidlEnvironmentV2_0::HidlTearDown() {

void SensorsHidlEnvironmentV2_0::startPollingThread() {
    mStopThread = false;
    mPollThread = std::thread(pollingThread, this);
    mEvents.reserve(MAX_RECEIVE_BUFFER_EVENT_COUNT);
    mPollThread = std::thread(pollingThread, this);
}

void SensorsHidlEnvironmentV2_0::readEvents() {