Merge pull request #4439 from Armada651/yield-ui

CPU: Fix deadlocks by periodically yielding to the UI message pump.
This commit is contained in:
Jules Blok
2016-11-11 20:30:31 +01:00
committed by GitHub
9 changed files with 80 additions and 18 deletions

View File

@ -10,6 +10,7 @@
#include <wx/app.h>
#include <wx/buffer.h>
#include <wx/cmdline.h>
#include <wx/evtloop.h>
#include <wx/image.h>
#include <wx/imagpng.h>
#include <wx/intl.h>
@ -547,3 +548,8 @@ void Host_ShowVideoConfig(void* parent, const std::string& backend_name)
diag.ShowModal();
}
}
void Host_YieldToUI()
{
wxGetApp().GetMainLoop()->YieldFor(wxEVT_CATEGORY_UI);
}

View File

@ -161,6 +161,10 @@ void Host_ShowVideoConfig(void*, const std::string&)
{
}
void Host_YieldToUI()
{
}
#if HAVE_X11
#include <X11/keysym.h>
#include "DolphinWX/X11Utils.h"