Merge pull request #11926 from JosJuice/android-host-check

Android: Re-add host thread check
This commit is contained in:
JosJuice
2023-06-19 20:37:59 +02:00
committed by GitHub
6 changed files with 92 additions and 43 deletions

View File

@ -795,11 +795,8 @@ void SaveScreenShot(std::string_view name)
static bool PauseAndLock(Core::System& system, bool do_lock, bool unpause_on_unlock)
{
// WARNING: PauseAndLock is not fully threadsafe so is only valid on the Host Thread
// TODO: Fix Android
#ifndef ANDROID
// WARNING: PauseAndLock is not fully threadsafe so is only valid on the Host Thread
ASSERT(IsHostThread());
#endif
if (!IsRunningAndStarted())
return true;