protocol: replace sleep with pthread cond

This commit is contained in:
Shuanglei Tao
2018-08-20 13:33:17 +08:00
parent d1d5336af1
commit 176f3e18a3
3 changed files with 5 additions and 3 deletions

View File

@@ -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;
};