Home
last modified time | relevance | path

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

/trueos/lib/libkse/thread/
HDthr_priority_queue.c95 else if ((pq->pq_lists = in _pq_alloc()
110 if ((pq != NULL) && (pq->pq_lists != NULL)) in _pq_free()
111 free(pq->pq_lists); in _pq_free()
119 if ((pq == NULL) || (pq->pq_lists == NULL)) in _pq_init()
125 TAILQ_INIT(&pq->pq_lists[i].pl_head); in _pq_init()
126 pq->pq_lists[i].pl_prio = i; in _pq_init()
127 pq->pq_lists[i].pl_queued = 0; in _pq_init()
157 TAILQ_REMOVE(&pq->pq_lists[prio].pl_head, pthread, pqe); in _pq_remove()
180 TAILQ_INSERT_HEAD(&pq->pq_lists[prio].pl_head, pthread, pqe); in _pq_insert_head()
181 if (pq->pq_lists[prio].pl_queued == 0) in _pq_insert_head()
[all …]
HDthr_private.h142 pq_list_t *pq_lists; /* array of all priority lists */ member