Small fix

This commit is contained in:
Nekotekina 2014-09-13 01:50:50 +04:00
parent 10e9d383d4
commit 0df3e955c8
2 changed files with 17 additions and 4 deletions

View file

@ -61,10 +61,16 @@ void CallbackManager::Init()
m_cb_thread->SetEntry(cb_shit);
m_cb_thread->SetPrio(1001); // ???
m_cb_thread->SetStackSize(0x10000);
m_cb_thread->Run();
thread cb_async_thread("CallbackManager::Async() thread", [this]()
{
while (Emu.IsReady())
{
m_cb_thread->WaitForAnySignal();
}
m_cb_thread->Run();
SetCurrentNamedThread(m_cb_thread);
while (!Emu.IsStopped())