mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-01 17:44:33 +00:00
Comments about input queue being close to be supporting multi-thread. (#5772)
This commit is contained in:
@@ -10483,6 +10483,8 @@ void ImGui::UpdateInputEvents(bool trickle_fast_inputs)
|
||||
#endif
|
||||
|
||||
// Remaining events will be processed on the next frame
|
||||
// FIXME-MULTITHREADING: io.AddKeyEvent() etc. calls are mostly thread-safe apart from the fact they push to this
|
||||
// queue which may be resized here. Could potentially rework this to narrow down the section needing a mutex? (#5772)
|
||||
if (event_n == g.InputEventsQueue.Size)
|
||||
g.InputEventsQueue.resize(0);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user