diff options
author | kmacy <kmacy@FreeBSD.org> | 2008-07-18 06:22:57 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2008-07-18 06:22:57 +0000 |
commit | daba4ab7d8a243bb3b97e56af835630d3e183c3f (patch) | |
tree | 8db9c9ad5b88b59930fb1bda4d34a72aa2876050 /sys/sys/_task.h | |
parent | 69e52692b2775ea0535627e408c138476283a114 (diff) | |
download | FreeBSD-src-daba4ab7d8a243bb3b97e56af835630d3e183c3f.zip FreeBSD-src-daba4ab7d8a243bb3b97e56af835630d3e183c3f.tar.gz |
revert changes accidentally included in last commit
Diffstat (limited to 'sys/sys/_task.h')
-rw-r--r-- | sys/sys/_task.h | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/sys/sys/_task.h b/sys/sys/_task.h index 5e1205e..2a51e1b 100644 --- a/sys/sys/_task.h +++ b/sys/sys/_task.h @@ -38,31 +38,13 @@ * times the task was enqueued before the call to taskqueue_run(). */ typedef void task_fn_t(void *context, int pending); -typedef int task_drv_fn_t(void *context, int pending); struct task { STAILQ_ENTRY(task) ta_link; /* link for queue */ - u_short ta_pending; /* count times queued */ - u_short ta_priority; /* Priority */ - uint16_t ta_ppending; /* previous pending value */ - uint8_t ta_rc; /* last return code */ - uint8_t ta_flags; /* flag state */ - union { - task_fn_t *_ta_func; /* task handler */ - task_drv_fn_t *_ta_drv_func; /* task handler */ - } u; - + u_short ta_pending; /* count times queued */ + u_short ta_priority; /* Priority */ + task_fn_t *ta_func; /* task handler */ void *ta_context; /* argument for handler */ }; -#define ta_func u._ta_func -#define ta_drv_func u._ta_drv_func - - -#define TA_COMPLETE 0x0 -#define TA_NO_DEQUEUE 0x1 - -#define TA_REFERENCED (1 << 0) - - #endif /* !_SYS__TASK_H_ */ |