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

DVDInterface: Simplify calling ChangeDisc from CPU thread #3980

Merged

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented Jul 5, 2016

When Movie was calling ChangeDisc, it was moving execution to the host thread just to then make the host thread the CPU thread. We can simply run the code directly on the CPU thread instead.

This works as far as I could see during my testing, but I'm not completely sure about the correctness. Since PR #3794 was the last major edit to this, @EmptyChaos, do you want to comment?


This change is Reviewable

When Movie was calling ChangeDisc, it was moving execution to
the host thread just to then make the host thread the CPU thread.
We can simply run the code directly on the CPU thread instead.
@JosJuice JosJuice changed the title Changedisc threading simplification DVDInterface: Simplify calling ChangeDisc from CPU thread Jul 5, 2016
@magumagu
Copy link
Contributor

magumagu commented Jul 5, 2016

This looks right in terms of synchronization. (It isn't really right in the sense that the disc change doesn't happen at the right time if you record a movie without using frame advance, but that's an existing issue.)

@phire
Copy link
Member

phire commented Jul 6, 2016

Yeah, this looks right

@EmptyChaos
Copy link
Contributor

@JosJuice I believe this should be correct.

@Parlane
Copy link
Member

Parlane commented Jul 13, 2016

Reviewed 6 of 6 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@Parlane Parlane merged commit baf9abe into dolphin-emu:master Jul 13, 2016
@JosJuice JosJuice deleted the changedisc-threading-simplification branch July 13, 2016 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants