Merge "Add missing Looper::setForThread"

This commit is contained in:
John Reck
2019-02-15 17:26:24 +00:00
committed by Android (Google) Code Review

View File

@@ -68,10 +68,12 @@ protected:
void processQueue() { mQueue.process(); }
virtual bool threadLoop() override {
Looper::setForThread(mLooper);
while (!exitPending()) {
waitForWork();
processQueue();
}
Looper::setForThread(nullptr);
return false;
}