Qt: Pump events on main thread when waiting for init
This commit is contained in:
parent
76cb52407b
commit
5274fa32ac
|
@ -991,6 +991,8 @@ void QtHostInterface::Thread::setInitResult(bool result)
|
||||||
|
|
||||||
bool QtHostInterface::Thread::waitForInit()
|
bool QtHostInterface::Thread::waitForInit()
|
||||||
{
|
{
|
||||||
m_init_event.Wait();
|
while (!m_init_event.TryWait(100))
|
||||||
|
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
|
||||||
|
|
||||||
return m_init_result.load();
|
return m_init_result.load();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue