From 6b33850f488ddd23fa29952a8c5d2a7c544617d3 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Wed, 16 Aug 2017 12:11:21 +0200 Subject: irmd, ipcpd: Signal acceptor only This adds an extra condvar so the mainloops can signal the acceptor thread without waking up all mainloops. --- src/ipcpd/ipcp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ipcpd/ipcp.h') diff --git a/src/ipcpd/ipcp.h b/src/ipcpd/ipcp.h index d2ad7cde..422670d7 100644 --- a/src/ipcpd/ipcp.h +++ b/src/ipcpd/ipcp.h @@ -93,6 +93,7 @@ struct ipcp { uint8_t cbuf[IPCP_MSG_BUF_SIZE]; size_t cmd_len; int csockfd; + pthread_cond_t acc_cond; pthread_cond_t cmd_cond; pthread_mutex_t cmd_lock; -- cgit v1.2.3