From b707d032cecb0cd97f548b755e4ec2bda190e83c Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sun, 2 Apr 2017 11:45:52 +0200 Subject: ipcpd: Add dynamic threadpooling for IPCPs --- src/ipcpd/ipcp.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/ipcpd/ipcp.h') diff --git a/src/ipcpd/ipcp.h b/src/ipcpd/ipcp.h index a64ab65c..581ca5e3 100644 --- a/src/ipcpd/ipcp.h +++ b/src/ipcpd/ipcp.h @@ -80,7 +80,16 @@ struct ipcp { int sockfd; char * sock_path; + pthread_t * threadpool; + + struct bmp * thread_ids; + size_t max_threads; + size_t threads; + pthread_cond_t threads_cond; + pthread_mutex_t threads_lock; + + pthread_t tpm; } ipcpi; int ipcp_init(int argc, -- cgit v1.2.3