summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp.h
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2017-04-02 11:45:52 +0200
committerdimitri staessens <[email protected]>2017-04-02 11:45:52 +0200
commitb707d032cecb0cd97f548b755e4ec2bda190e83c (patch)
tree0adff5f0a4016e2c0384b5cd06e3783a4eb9c995 /src/ipcpd/ipcp.h
parent1e62996112a2a43bd0f572676bc8d87761ad6386 (diff)
downloadouroboros-b707d032cecb0cd97f548b755e4ec2bda190e83c.tar.gz
ouroboros-b707d032cecb0cd97f548b755e4ec2bda190e83c.zip
ipcpd: Add dynamic threadpooling for IPCPs
Diffstat (limited to 'src/ipcpd/ipcp.h')
-rw-r--r--src/ipcpd/ipcp.h9
1 files changed, 9 insertions, 0 deletions
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,