mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-08 03:44:22 +01:00
protocol: replace sleep with pthread cond
This commit is contained in:
@@ -46,6 +46,7 @@ struct tty_client {
|
||||
ssize_t pty_len;
|
||||
pthread_t thread;
|
||||
pthread_mutex_t mutex;
|
||||
pthread_cond_t cond;
|
||||
|
||||
LIST_ENTRY(tty_client) list;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user