diff options
author | Sander Vrijders <[email protected]> | 2017-04-05 14:28:24 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-04-05 14:28:24 +0200 |
commit | c5b092665c219c679ede91b3dc816c61f2f9dabe (patch) | |
tree | e60083545da6ce0dc5fdacd06610d907b90c5aee /src/ipcpd/ipcp.h | |
parent | fa1590539e66c17902bb4f09221e6447b3233bfb (diff) | |
download | ouroboros-c5b092665c219c679ede91b3dc816c61f2f9dabe.tar.gz ouroboros-c5b092665c219c679ede91b3dc816c61f2f9dabe.zip |
ipcpd: Add lock for allocation requests
This adds a lock to prevent a race condition between flow_req_arr and
flow_alloc_resp.
Diffstat (limited to 'src/ipcpd/ipcp.h')
-rw-r--r-- | src/ipcpd/ipcp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipcpd/ipcp.h b/src/ipcpd/ipcp.h index 581ca5e3..145e91f5 100644 --- a/src/ipcpd/ipcp.h +++ b/src/ipcpd/ipcp.h @@ -81,6 +81,8 @@ struct ipcp { int sockfd; char * sock_path; + pthread_mutex_t alloc_lock; + pthread_t * threadpool; struct bmp * thread_ids; |