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

FEXCore: Removes ExitHandler and RunUntilExit #4188

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

Sonicadvance1
Copy link
Member

Now that all the threading behaviour has been correctly separated/moved to the frontend, these functions serve no purpose.

  • Instead of using RunUntilExit, all threads can use ExecuteThread directly, since there's nothing special about the primary thread now.
    • This also removes the public function definition of ExecutionThread since that was only used for threading logic.
  • Instead of using an exit handler, just do the same cleanup after ExecuteThread has returned.
    • Just make gdbserver is cleaned up early if it exists since it may want to send some things to the connected gdb instance before threads are exited.

Copy link
Contributor

@lioncash lioncash left a comment

Choose a reason for hiding this comment

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

needs a rebase

Now that all the threading behaviour has been correctly separated/moved
to the frontend, these functions serve no purpose.

- Instead of using RunUntilExit, all threads can use `ExecuteThread`
  directly, since there's nothing special about the primary thread now.
  - This also removes the public function definition of `ExecutionThread` since that was only used for threading logic.
- Instead of using an exit handler, just do the same cleanup after
  `ExecuteThread` has returned.
  - Just make gdbserver is cleaned up early if it exists since it may
    want to send some things to the connected gdb instance before
    threads are exited.
@Sonicadvance1
Copy link
Member Author

based

@lioncash lioncash merged commit 41c8731 into FEX-Emu:main Dec 1, 2024
12 checks passed
@Sonicadvance1 Sonicadvance1 deleted the fexcore_remove_unnecessary branch December 1, 2024 20:10
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