From c6e54c7ab54f1c96bf4a501e79c809d0b47d4e1d Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 13 Jan 2026 16:38:58 +0100 Subject: [PATCH] Comments about input queue being close to be supporting multi-thread. (#5772) --- imgui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index 5a49b8918..5bbb31b9c 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -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