Bump NDK version to 27.0.12077973, replace ALooper_pollAll with ALooper_pollOnce (#2663)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user