1 #ifndef _SYS_TASKQUEUE_H_
2 #define _SYS_TASKQUEUE_H_
5 * Remap taskqueue to direct calls
10 void (*func)(void*, int);
12 #define taskqueue_enqueue(tq, ta) (ta)->func(NULL,1)
13 #define TASK_INIT(a,b,c,d) do { \
14 (a)->func = (c); } while (0)
19 #define taskqueue_enqueue(tq, ta) (ta)->func()
20 #define TASK_INIT(a,b,c,d) do { \
21 (a)->func = (void (*)(void))c; } while (0)
24 #define taskqueue_create_fast(_a, _b, _c, _d) NULL
25 #define taskqueue_start_threads(_a, _b, _c, _d)
27 #define taskqueue_drain(_a, _b) /* XXX to be completed */
28 #define taskqueue_free(_a) /* XXX to be completed */
30 #define PRI_MIN (0) /* Highest priority. */
31 #define PRI_MIN_ITHD (PRI_MIN)
32 #define PI_NET (PRI_MIN_ITHD + 16)
34 #endif /* !_SYS_TASKQUEUE_H_ */