summaryrefslogtreecommitdiff
path: root/accel-pptpd/triton/triton.h
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pptpd/triton/triton.h')
-rw-r--r--accel-pptpd/triton/triton.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/accel-pptpd/triton/triton.h b/accel-pptpd/triton/triton.h
index 240f31f..0e9b73b 100644
--- a/accel-pptpd/triton/triton.h
+++ b/accel-pptpd/triton/triton.h
@@ -5,15 +5,13 @@
#include <pthread.h>
#include <sys/epoll.h>
+#include <triton.h>
+
struct triton_thread_t
{
struct list_head entry;
- pthread_mutex_t lock;
- pthread_cond_t cond;
pthread_t thread;
int terminate:1;
- int destroing:1;
- struct timeval tv;
struct triton_ctx_t *ctx;
};
@@ -21,7 +19,7 @@ struct triton_ctx_t
{
struct list_head entry;
struct list_head entry2;
- pthread_mutex_t lock;
+ spinlock_t lock;
struct list_head handlers;
struct list_head timers;