- Logic goroutine: receives config events, recomputes layout, sends frames - Frame receiver goroutine: reads frames, stores under mutex, calls w.Invalidate() - Main event loop: renders frames under mutex, sends config events to logic - Proper channel topology: configChan, frameChan, inputChan - Mutex around elems shared between goroutines - Window resize triggers layout recomputation in logic goroutine Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
8.2 MiB
Executable File
8.2 MiB
Executable File
The file is too large to be shown.
View Raw