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

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

Merge "Using wake to forcefully wake up the looper instead of 1s timeout."

parents cb3c2560 b65a77f7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -308,6 +308,7 @@ IncrementalService::~IncrementalService() {
    }
    mJobCondition.notify_all();
    mJobProcessor.join();
    mLooper->wake();
    mCmdLooperThread.join();
    mTimedQueue->stop();
    mProgressUpdateJobQueue->stop();
@@ -1386,7 +1387,7 @@ bool IncrementalService::mountExistingImage(std::string_view root) {
}

void IncrementalService::runCmdLooper() {
    constexpr auto kTimeoutMsecs = 1000;
    constexpr auto kTimeoutMsecs = -1;
    while (mRunning.load(std::memory_order_relaxed)) {
        mLooper->pollAll(kTimeoutMsecs);
    }