conf: add 'tweak.pty-prefetch-buffer-size-kb' setting

This controls the size of the buffers used by the PTY reader
thread. The default is 512KB, for now.
This commit is contained in:
Daniel Eklöf 2020-06-19 17:15:55 +02:00
parent 984d008250
commit 1b06486c98
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 19 additions and 11 deletions

View file

@ -215,12 +215,12 @@ struct terminal {
mtx_t lock;
cnd_t cond;
int event_fd;
int size;
unsigned size;
uint8_t idx;
struct {
uint8_t *data;
int len;
unsigned len;
} buf[2];
} ptmx_read_buffer;