diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-02 11:45:52 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-02 11:45:52 +0200 |
commit | b707d032cecb0cd97f548b755e4ec2bda190e83c (patch) | |
tree | 0adff5f0a4016e2c0384b5cd06e3783a4eb9c995 /src/ipcpd/ipcp.h | |
parent | 1e62996112a2a43bd0f572676bc8d87761ad6386 (diff) | |
download | ouroboros-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.h | 9 |
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, |