summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-06-03 17:04:10 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-06-03 17:04:10 +0200
commitecbe89613c7c0421f8f09267ad057dcbc71b087c (patch)
tree46c3a6ca5271a3e81b8801a27af7e3e31f0215f0 /src/fastd.h
parentb506a1cb52337b94c56dd044331669ebb9723246 (diff)
downloadfastd-ecbe89613c7c0421f8f09267ad057dcbc71b087c.tar
fastd-ecbe89613c7c0421f8f09267ad057dcbc71b087c.zip
Create threads in detached state
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fastd.h b/src/fastd.h
index f69f2f8..19660db 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -41,6 +41,7 @@
#include <errno.h>
#include <fcntl.h>
+#include <pthread.h>
#include <poll.h>
#include <stdarg.h>
#include <stdio.h>
@@ -258,6 +259,8 @@ struct fastd_context {
int async_rfd; /**< The read side of the pipe used to send data from other thread to the main thread */
int async_wfd; /**< The write side of the pipe used to send data from other thread to the main thread */
+ pthread_attr_t detached_thread; /**< pthread_attr_t for creating detached threads */
+
int tunfd; /**< The file descriptor of the tunnel interface */
size_t n_socks; /**< The number of sockets in socks */