| 115 | #endif |
| 116 | |
| 117 | static __inline int |
| 118 | TQ_SLEEP(struct gtaskqueue *tq, void *p, const char *wm) |
| 119 | { |
| 120 | if (tq->tq_spin) |
| 121 | return (msleep_spin(p, (struct mtx *)&tq->tq_mutex, wm, 0)); |
| 122 | return (msleep(p, &tq->tq_mutex, 0, wm, 0)); |
| 123 | } |
| 124 | |
| 125 | static struct gtaskqueue * |
| 126 | _gtaskqueue_create(const char *name, int mflags, |
no outgoing calls
no test coverage detected