Replace ALooper_pollAll with ALooper_pollOnce (#3334)

This commit is contained in:
Sandy 2024-08-02 18:38:56 -04:00 committed by GitHub
parent aa4f8c5833
commit 409fbc5d14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -189,9 +189,10 @@ namespace entry
while (0 == m_app->destroyRequested)
{
int32_t num;
android_poll_source* source;
/*int32_t id =*/ ALooper_pollAll(-1, NULL, &num, (void**)&source);
int32_t result = ALooper_pollOnce(-1, NULL, NULL, reinterpret_cast<void**>(&source));
BX_ASSERT(ALOOPER_POLL_ERROR != result, "ALooper_pollOnce returned an error.");
if (NULL != source)
{