mirror of https://github.com/F-Stack/f-stack.git
Fix bug: dead loop when destroy a network interface.
This commit is contained in:
parent
8966cc7c16
commit
0b8e61ab4d
|
@ -112,6 +112,7 @@ _timeout_task_init(struct taskqueue *queue, struct timeout_task *timeout_task,
|
||||||
timeout_task->f = 0;
|
timeout_task->f = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef FSTACK
|
||||||
static __inline int
|
static __inline int
|
||||||
TQ_SLEEP(struct taskqueue *tq, void *p, struct mtx *m, int pri, const char *wm,
|
TQ_SLEEP(struct taskqueue *tq, void *p, struct mtx *m, int pri, const char *wm,
|
||||||
int t)
|
int t)
|
||||||
|
@ -120,6 +121,9 @@ TQ_SLEEP(struct taskqueue *tq, void *p, struct mtx *m, int pri, const char *wm,
|
||||||
return (msleep_spin(p, m, wm, t));
|
return (msleep_spin(p, m, wm, t));
|
||||||
return (msleep(p, m, pri, wm, t));
|
return (msleep(p, m, pri, wm, t));
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#define TQ_SLEEP(a, b, c, d, e, f) break;
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct taskqueue *
|
static struct taskqueue *
|
||||||
_taskqueue_create(const char *name, int mflags,
|
_taskqueue_create(const char *name, int mflags,
|
||||||
|
|
Loading…
Reference in New Issue