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:
@@ -676,6 +676,13 @@ void log_frame::UpdateUI()
|
||||
}
|
||||
|
||||
s_gui_listener.pop();
|
||||
|
||||
if (steady_clock::now() >= start + 7ms)
|
||||
{
|
||||
// Must break eventually
|
||||
break;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user