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

Function TQ_SLEEP

freebsd/kern/subr_taskqueue.c:121–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120#ifndef FSTACK
121static __inline int
122TQ_SLEEP(struct taskqueue *tq, void *p, const char *wm)
123{
124 if (tq->tq_spin)
125 return (msleep_spin(p, (struct mtx *)&tq->tq_mutex, wm, 0));
126 return (msleep(p, &tq->tq_mutex, 0, wm, 0));
127}
128#else
129#define TQ_SLEEP(a, b, c) break;
130#endif

Callers 5

taskqueue_terminateFunction · 0.70
taskqueue_drain_tq_queueFunction · 0.70
taskqueue_drainFunction · 0.70
taskqueue_thread_loopFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected