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

Function task_is_running

freebsd/kern/subr_taskqueue.c:502–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502static int
503task_is_running(struct taskqueue *queue, struct task *task)
504{
505 struct taskqueue_busy *tb;
506
507 TQ_ASSERT_LOCKED(queue);
508 LIST_FOREACH(tb, &queue->tq_active, tb_link) {
509 if (tb->tb_running == task)
510 return (1);
511 }
512 return (0);
513}
514
515/*
516 * Only use this function in single threaded contexts. It returns

Callers 3

taskqueue_poll_is_busyFunction · 0.70
taskqueue_cancel_lockedFunction · 0.70
taskqueue_drainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected