diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-09-16 18:09:51 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-09-16 18:09:51 +0100 |
commit | cbde98f67b5f96abcd95b8560081a7664980a3cf (patch) | |
tree | 5f0c23101e7fe10bb101e845f75b16ec0222e5ac /tmux.h | |
parent | 6e8f400edc76ab94cde73988689dbc3f6cd1ca9e (diff) | |
parent | 895f1d93d51f54b3f76e6406d51f4fc491399ce2 (diff) | |
download | rtmux-cbde98f67b5f96abcd95b8560081a7664980a3cf.tar.gz rtmux-cbde98f67b5f96abcd95b8560081a7664980a3cf.tar.bz2 rtmux-cbde98f67b5f96abcd95b8560081a7664980a3cf.zip |
Merge branch 'master' of github.com:tmux/tmux
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -61,8 +61,18 @@ struct tmuxproc; /* Automatic name refresh interval, in microseconds. Must be < 1 second. */ #define NAME_INTERVAL 500000 -/* The maximum amount of data to hold from a pty (the event high watermark). */ -#define READ_SIZE 4096 +/* + * Event watermarks. We start with FAST then if we hit full size for HITS reads + * in succession switch to SLOW, and return when we hit EMPTY the same number + * of times. + */ +#define READ_FAST_SIZE 4096 +#define READ_SLOW_SIZE 128 + +#define READ_FULL_SIZE (4096 - 16) +#define READ_EMPTY_SIZE 16 + +#define READ_CHANGE_HITS 3 /* Attribute to make gcc check printf-like arguments. */ #define printflike(a, b) __attribute__ ((format (printf, a, b))) @@ -886,6 +896,9 @@ struct window_pane { int fd; struct bufferevent *event; + u_int wmark_size; + u_int wmark_hits; + struct input_ctx *ictx; struct grid_cell colgc; |