Bump NDK version to 27.0.12077973, replace ALooper_pollAll with ALooper_pollOnce (#2663)

This commit is contained in:
Bart Louwers
2024-08-01 20:12:14 +02:00
committed by GitHub
parent c9764a0c3a
commit 88993b9420
6 changed files with 33 additions and 17 deletions

View File

@@ -269,7 +269,10 @@ void RunLoop::run() {
while (impl->running) {
process();
auto timeout = impl->processRunnables().count();
ALooper_pollAll(timeout, &outFd, &outEvents, reinterpret_cast<void**>(&outData));
auto result = ALooper_pollOnce(timeout, &outFd, &outEvents, reinterpret_cast<void**>(&outData));
if (result == ALOOPER_POLL_ERROR) {
throw std::runtime_error("ALooper_pollOnce returned an error");
}
}
}