mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
BlockingLoop: Yield to UI message pump while waiting.
This commit is contained in:
parent
e8af48adfc
commit
8203ea929b
8 changed files with 56 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue