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

Fix emulator crash when stopping emulation after being paused #13530

Merged
merged 3 commits into from
Apr 5, 2023

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Mar 11, 2023

BlockingCallFromMainThread has been called on std::thread inside Resume() resultiing in a verification failure.

@elad335 elad335 changed the title Fix emulator crash when using stopping emulation after being paused Fix emulator crash when stopping emulation after being paused Mar 11, 2023
Resume(); // TODO: Prevent pausing by other threads while in this loop

// TODO: Prevent pausing by other threads while in this loop
CallFromMainThread([this]()
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this async?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

std::thread cannot execute BlockingCallFromMainThread which is present inside Resume().

@Megamouse Megamouse merged commit c6ab1aa into RPCS3:master Apr 5, 2023
@elad335 elad335 deleted the patch-23 branch May 6, 2024 17:13
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.

2 participants