Home
last modified time | relevance | path

Searched refs:tp_idle_threads (Results 1 – 1 of 1) sorted by relevance

/netbsd-src/sys/kern/
H A Dkern_threadpool.c194 struct thread_head tp_idle_threads; member
395 TAILQ_INIT(&pool->tp_idle_threads); in threadpool_create()
429 KASSERT(TAILQ_EMPTY(&pool->tp_idle_threads)); in threadpool_create()
452 TAILQ_FOREACH(thread, &pool->tp_idle_threads, tpt_entry) in threadpool_destroy()
465 KASSERT(TAILQ_EMPTY(&pool->tp_idle_threads)); in threadpool_destroy()
874 if (__predict_false(TAILQ_EMPTY(&pool->tp_idle_threads))) { in threadpool_schedule_job()
882 job->job_thread = TAILQ_FIRST(&pool->tp_idle_threads); in threadpool_schedule_job()
885 TAILQ_REMOVE(&pool->tp_idle_threads, job->job_thread, in threadpool_schedule_job()
997 if (TAILQ_EMPTY(&pool->tp_idle_threads)) { in threadpool_dispatcher_thread()
1034 TAILQ_INSERT_TAIL(&pool->tp_idle_threads, thread, in threadpool_dispatcher_thread()
[all …]