Skip to content

Commit

Permalink
Replace ALooper_pollAll with ALooper_pollOnce (#3334)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwrsandman authored Aug 2, 2024
1 parent aa4f8c5 commit 409fbc5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/common/entry/entry_android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 409fbc5

Please sign in to comment.