mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
logs: Prevent potential deadlock of the main thread in stack mode
If a thread logs faster than the GUI thread can print on screen.
This commit is contained in:
parent
9212942724
commit
501ca4bcf5
|
|
@ -676,6 +676,13 @@ void log_frame::UpdateUI()
|
|||
}
|
||||
|
||||
s_gui_listener.pop();
|
||||
|
||||
if (steady_clock::now() >= start + 7ms)
|
||||
{
|
||||
// Must break eventually
|
||||
break;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue