MCPcopy Create free account
hub / github.com/F-Stack/f-stack / TQ_SLEEP

Function TQ_SLEEP

freebsd/kern/subr_gtaskqueue.c:117–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115#endif
116
117static __inline int
118TQ_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
125static struct gtaskqueue *
126_gtaskqueue_create(const char *name, int mflags,

Callers 5

gtaskqueue_terminateFunction · 0.70
gtaskqueue_drain_lockedFunction · 0.70
gtaskqueue_thread_loopFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected