mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-01 17:33:40 +03:00
a91a3f2dce121a179a9371cd0ad1e548cf3d7731
There was a lot of complexity around the threadsafe `Flag` type and waking up the event loop. The idea was to prevent unnecessary calls to the glutin window's wakeup_event_loop() method which can be expensive. This complexity made it difficult to get synchronization between the pty reader and the render thread correct. Now, the `dirty` flag on the terminal is also used to prevent spurious wakeups. It is only changed when the mutex is held, so race conditions associated with that flag shouldn't happen.
Languages
Rust
95.8%
Shell
3%
GLSL
0.9%
Makefile
0.3%