mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-07 07:25:20 +00: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
1 changed files with 7 additions and 0 deletions
|
|
@ -676,6 +676,13 @@ void log_frame::UpdateUI()
|
|||
}
|
||||
|
||||
s_gui_listener.pop();
|
||||
|
||||
if (steady_clock::now() >= start + 7ms)
|
||||
{
|
||||
// Must break eventually
|
||||
break;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue