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

Android: Make GameFileCacheManager use LiveData #10229

Merged
merged 2 commits into from Nov 17, 2021

Conversation

JosJuice
Copy link
Member

This gets rid some uses of the deprecated LocalBroadcastManager.

Gets rid some uses of the deprecated LocalBroadcastManager.

One note about the changes in GameFileCacheManager itself:
The change from compareAndSet to getValue followed by
setValue is actually safe, because startLoad and startRescan
only run from the main thread, and only the main thread ever
sets the flags to true. So it's impossible for any other thread
to change the flag in between the getValue and the setValue.
@lioncash lioncash merged commit 8b57aad into dolphin-emu:master Nov 17, 2021
10 checks passed
@JosJuice JosJuice deleted the android-game-list-livedata branch November 18, 2021 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants