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

Additional Android cleanup #16644

Merged
merged 5 commits into from
Dec 29, 2022
Merged

Additional Android cleanup #16644

merged 5 commits into from
Dec 29, 2022

Conversation

hrydgard
Copy link
Owner

No description provided.

@hrydgard hrydgard added this to the v1.14.2 milestone Dec 28, 2022
@hrydgard hrydgard marked this pull request as ready for review December 28, 2022 23:40
@@ -650,7 +655,7 @@ extern "C" void Java_org_ppsspp_ppsspp_NativeApp_init
EARLY_LOG("NativeApp.init() -- begin");
PROFILE_INIT();

std::lock_guard<std::mutex> guard(renderLock);
std::lock_guard<std::mutex> guard(renderLock); // Note: This is held for the rest of this function - intended?
Copy link
Collaborator

Choose a reason for hiding this comment

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

This only overlaps with shutdown and render, neither of which should start happening until init is done, IMHO. So it seems like a good thing for this lock to last the entire time.

That said, maybe we could run some more on the background or in a thread. I don't really think that would change this lock lifetime itself, but rather move other things out of this func directly.

-[Unknown]

@hrydgard hrydgard merged commit bd2a0c9 into master Dec 29, 2022
@hrydgard hrydgard deleted the additional-android-cleanup branch December 29, 2022 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants