mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Core: Assert that only the Host thread may call PauseAndLock().
This commit is contained in:
@ -59,16 +59,6 @@ Host* Host::GetInstance()
|
||||
return s_instance;
|
||||
}
|
||||
|
||||
void Host::DeclareAsHostThread()
|
||||
{
|
||||
tls_is_host_thread = true;
|
||||
}
|
||||
|
||||
bool Host::IsHostThread()
|
||||
{
|
||||
return tls_is_host_thread;
|
||||
}
|
||||
|
||||
void Host::SetRenderHandle(void* handle)
|
||||
{
|
||||
m_render_to_main = Config::Get(Config::MAIN_RENDER_TO_MAIN);
|
||||
|
@ -123,7 +123,7 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
#endif
|
||||
|
||||
Host::GetInstance()->DeclareAsHostThread();
|
||||
Core::DeclareAsHostThread();
|
||||
|
||||
#ifdef __APPLE__
|
||||
// On macOS, a command line option matching the format "-psn_X_XXXXXX" is passed when
|
||||
|
@ -71,7 +71,7 @@ Settings::Settings()
|
||||
});
|
||||
|
||||
m_hotplug_callback_handle = g_controller_interface.RegisterDevicesChangedCallback([this] {
|
||||
if (Host::GetInstance()->IsHostThread())
|
||||
if (Core::IsHostThread())
|
||||
{
|
||||
emit DevicesChanged();
|
||||
}
|
||||
|
Reference in New Issue
Block a user