Lines Matching defs:pq
97 pqueue_s *pq = (pqueue_s *) OPENSSL_malloc(sizeof(pqueue_s));
98 if (pq == NULL) return NULL;
100 memset(pq, 0x00, sizeof(pqueue_s));
101 return pq;
105 pqueue_free(pqueue_s *pq)
107 if (pq == NULL) return;
109 OPENSSL_free(pq);
113 pqueue_insert(pqueue_s *pq, pitem *item)
117 if (pq->items == NULL)
119 pq->items = item;
123 for(curr = NULL, next = pq->items;
132 pq->items = item;
150 pqueue_peek(pqueue_s *pq)
152 return pq->items;
156 pqueue_pop(pqueue_s *pq)
158 pitem *item = pq->items;
160 if (pq->items != NULL)
161 pq->items = pq->items->next;
167 pqueue_find(pqueue_s *pq, PQ_64BIT priority)
172 if ( pq->items == NULL)
175 for ( next = pq->items; next->next != NULL;
194 pq->items = next->next;
204 pqueue_print(pqueue_s *pq)
206 pitem *item = pq->items;
217 pqueue_iterator(pqueue_s *pq)
219 return pqueue_peek(pq);