summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Main.cpp
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2016-11-11 20:30:31 +0100
committerGitHub <noreply@github.com>2016-11-11 20:30:31 +0100
commitf0ce3275afacbb8b61656f6d64216efee1dc2958 (patch)
tree2b22d1c4ac8caefafea4abb4abc1d8c2ef96d41b /Source/Core/DolphinWX/Main.cpp
parentfbfce2a043394ecbd6da7affd6184a640e858d29 (diff)
parent20d49ba97f14649c459f5311bf6325daebfa382a (diff)
Merge pull request #4439 from Armada651/yield-ui
CPU: Fix deadlocks by periodically yielding to the UI message pump.
Diffstat (limited to 'Source/Core/DolphinWX/Main.cpp')
-rw-r--r--Source/Core/DolphinWX/Main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Main.cpp b/Source/Core/DolphinWX/Main.cpp
index 871e89ad28..444b270d39 100644
--- a/Source/Core/DolphinWX/Main.cpp
+++ b/Source/Core/DolphinWX/Main.cpp
@@ -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);
+}