summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/linux/timer.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/pfinet/linux/timer.h b/pfinet/linux/timer.h
index bbab7937..2458746e 100644
--- a/pfinet/linux/timer.h
+++ b/pfinet/linux/timer.h
@@ -3,10 +3,18 @@
#include <cthreads.h>
+enum tstate
+{
+ TIMER_INACTIVE,
+ TIMER_STARTING,
+ TIMER_STARTED,
+ TIMER_EXPIRED,
+ TIMER_FUNCTION_RUNNING,
+};
+
struct timer_list
{
- thread_t thread;
- int foobiebletch;
+ struct timer_list *next, **prevp;
unsigned long expires;
unsigned long data;
void (*function)(unsigned long);