diff options
author | Joe Wilm <joe@jwilm.com> | 2016-07-01 10:34:08 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-07-01 10:34:08 -0700 |
commit | ae39d38a151f264b09c8e7a698d3838f8aa18dd8 (patch) | |
tree | b234a6dcc409db9e0dee809f837c0110684db38e /src/input.rs | |
parent | d514b382237d4df2e33503602ec2af4c0cbb2189 (diff) | |
download | r-alacritty-ae39d38a151f264b09c8e7a698d3838f8aa18dd8.tar.gz r-alacritty-ae39d38a151f264b09c8e7a698d3838f8aa18dd8.tar.bz2 r-alacritty-ae39d38a151f264b09c8e7a698d3838f8aa18dd8.zip |
Improve pty reading and renderer synchronization
The pty read thread now runs the parser and directly updates the
terminal in the same thread. This obviates the need for a channel which
sends every char read from the pty; this is a huge performance boon.
Synchronization between the updater and the renderer is now achieved
with a PriorityMutex. Previously, an atomic bool was (poorly) used to
request the lock on terminal. The PriorityMutex is dead simple to use,
and it _Just Works_.
Diffstat (limited to 'src/input.rs')
0 files changed, 0 insertions, 0 deletions