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

Commit ebb71b59 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Verify mPollThread is joinable before detaching" into android10-tests-dev

parents a3d5ee35 53f2200e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -29,8 +29,10 @@ void SensorsHidlEnvironmentBase::HidlSetUp() {

void SensorsHidlEnvironmentBase::HidlTearDown() {
    mStopThread = true;
    if (mPollThread.joinable()) {
        mPollThread.detach();
    }
}

void SensorsHidlEnvironmentBase::catEvents(std::vector<Event>* output) {
    std::lock_guard<std::mutex> lock(mEventsMutex);