Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a version of Engine::flushAndWait that takes a timeout #8382

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pixelflinger
Copy link
Collaborator

The old version that doesn't take a timeout now always waits forever; before it waited for a few seconds on Android debug builds.

The new version has an explicit timeout that works on all platforms and returns success status.

FIXES=[384043020]

The old version that doesn't take a timeout now always waits forever;
before it waited for a few seconds on Android debug builds.

The new version has an explicit timeout that works on all platforms and
returns success status.

FIXES=[384043020]
@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label Jan 23, 2025
Copy link
Contributor

@poweifeng poweifeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm except one question

// finally, execute callbacks that might have been scheduled
getDriver().purge();

return status == FenceStatus::CONDITION_SATISFIED;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's also FenceStatus::ERROR? Here it'll get translated to timeout.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, the return value is more success/fail -- we'll see how it goes, I didn't want to expose the 3-states.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants