diff options
author | Kozlov Dmitry <dima@server> | 2010-08-27 17:15:02 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-08-27 17:15:02 +0400 |
commit | 55ebaec066819d068bf13a42998ebc3f31377990 (patch) | |
tree | 4c3922094e3c47fa132570046fcfb70f2bf60ba3 /accel-pptpd/triton/triton.h | |
parent | 9857527f8f1fe124cdd5e66180351f0661e22dd6 (diff) | |
download | accel-ppp-xebd-55ebaec066819d068bf13a42998ebc3f31377990.tar.gz accel-ppp-xebd-55ebaec066819d068bf13a42998ebc3f31377990.zip |
rewriting triton library ...
Diffstat (limited to 'accel-pptpd/triton/triton.h')
-rw-r--r-- | accel-pptpd/triton/triton.h | 8 |
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; |