summaryrefslogtreecommitdiff
path: root/services/incremental/IncrementalService.cpp
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2020-09-24 07:45:31 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-09-24 07:45:31 +0000
commitfd55a98702c491b5fa3730f14873228a61644e9a (patch)
tree68138dba4c98cf740cf13e0fd545a0fada624562 /services/incremental/IncrementalService.cpp
parent0633bc8e594eb8dfdd1fe1e7d2ac7cf61b3b8882 (diff)
parent74fcc57ec427bf0a034c7b2a31678b8638a7ec02 (diff)
Merge "Excessive battery usage fix." into rvc-qpr-dev
Diffstat (limited to 'services/incremental/IncrementalService.cpp')
-rw-r--r--services/incremental/IncrementalService.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/incremental/IncrementalService.cpp b/services/incremental/IncrementalService.cpp
index a5f0d045948c..e355a20907d8 100644
--- a/services/incremental/IncrementalService.cpp
+++ b/services/incremental/IncrementalService.cpp
@@ -306,6 +306,7 @@ IncrementalService::~IncrementalService() {
}
mJobCondition.notify_all();
mJobProcessor.join();
+ mLooper->wake();
mCmdLooperThread.join();
mTimedQueue->stop();
// Ensure that mounts are destroyed while the service is still valid.
@@ -1378,7 +1379,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);
}