Lines Matching refs:pq
38 pqueue *pq = OPENSSL_zalloc(sizeof(*pq));
40 return pq;
43 void pqueue_free(pqueue *pq)
45 OPENSSL_free(pq);
48 pitem *pqueue_insert(pqueue *pq, pitem *item)
52 if (pq->items == NULL) {
53 pq->items = item;
57 for (curr = NULL, next = pq->items;
67 pq->items = item;
84 pitem *pqueue_peek(pqueue *pq)
86 return pq->items;
89 pitem *pqueue_pop(pqueue *pq)
91 pitem *item = pq->items;
93 if (pq->items != NULL)
94 pq->items = pq->items->next;
99 pitem *pqueue_find(pqueue *pq, unsigned char *prio64be)
104 if (pq->items == NULL)
107 for (next = pq->items; next->next != NULL; next = next->next) {
124 pitem *pqueue_iterator(pqueue *pq)
126 return pqueue_peek(pq);
143 size_t pqueue_size(pqueue *pq)
145 pitem *item = pq->items;