return true;
}
+bool LooperBackedEventLoop::StopWatchFileDescriptor(int fd) {
+ if (looper_->removeFd(fd) == 1) {
+ return true;
+ }
+ return false;
+}
+
void LooperBackedEventLoop::Poll() {
while (should_continue_) {
looper_->pollOnce(-1);
}
}
+void LooperBackedEventLoop::PollForOne(int timeout_millis) {
+ looper_->pollOnce(timeout_millis);
+}
+
void LooperBackedEventLoop::TriggerExit() {
PostTask([this](){ should_continue_ = false; });
}