summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Main.cpp
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2016-11-10 17:55:21 +0100
committerJules Blok <jules.blok@gmail.com>2016-11-11 13:37:02 +0100
commit8203ea929b5981b8413c342e6bbfb7467f3c2a0d (patch)
treea019d29c96705917cf695ef3fd1d1db5b25e6f79 /Source/Core/DolphinWX/Main.cpp
parente8af48adfca6e6fb291c5c715af1562569dc1bd3 (diff)
BlockingLoop: Yield to UI message pump while waiting.
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);
+}