Merge "Excessive battery usage fix." into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fd55a98702
@@ -306,6 +306,7 @@ IncrementalService::~IncrementalService() {
|
|||||||
}
|
}
|
||||||
mJobCondition.notify_all();
|
mJobCondition.notify_all();
|
||||||
mJobProcessor.join();
|
mJobProcessor.join();
|
||||||
|
mLooper->wake();
|
||||||
mCmdLooperThread.join();
|
mCmdLooperThread.join();
|
||||||
mTimedQueue->stop();
|
mTimedQueue->stop();
|
||||||
// Ensure that mounts are destroyed while the service is still valid.
|
// 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() {
|
void IncrementalService::runCmdLooper() {
|
||||||
constexpr auto kTimeoutMsecs = 1000;
|
constexpr auto kTimeoutMsecs = -1;
|
||||||
while (mRunning.load(std::memory_order_relaxed)) {
|
while (mRunning.load(std::memory_order_relaxed)) {
|
||||||
mLooper->pollAll(kTimeoutMsecs);
|
mLooper->pollAll(kTimeoutMsecs);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user