Lines Matching refs:pq
60 /* The maximum number of items this pq can store. This is
68 * Initializes priority queue |pq| with compare function |cmp|.
70 void nghttp3_pq_init(nghttp3_pq *pq, nghttp3_less less, const nghttp3_mem *mem);
73 * Deallocates any resources allocated for |pq|. The stored items are
76 void nghttp3_pq_free(nghttp3_pq *pq);
79 * Adds |item| to the priority queue |pq|.
87 int nghttp3_pq_push(nghttp3_pq *pq, nghttp3_pq_entry *item);
90 * Returns item at the top of the queue |pq|. It is undefined if the
93 nghttp3_pq_entry *nghttp3_pq_top(const nghttp3_pq *pq);
96 * Pops item at the top of the queue |pq|. The popped item is not
99 void nghttp3_pq_pop(nghttp3_pq *pq);
102 * Returns nonzero if the queue |pq| is empty.
104 int nghttp3_pq_empty(const nghttp3_pq *pq);
107 * Returns the number of items in the queue |pq|.
109 size_t nghttp3_pq_size(const nghttp3_pq *pq);
114 * Applies |fun| to each item in |pq|. The |arg| is passed as arg
120 int nghttp3_pq_each(const nghttp3_pq *pq, nghttp3_pq_item_cb fun, void *arg);
125 void nghttp3_pq_remove(nghttp3_pq *pq, nghttp3_pq_entry *item);
127 void nghttp3_pq_clear(nghttp3_pq *pq);