Lines Matching refs:pq
49 /* The maximum number of items this pq can store. This is
57 * Initializes priority queue |pq| with compare function |cmp|.
59 void nghttp2_pq_init(nghttp2_pq *pq, nghttp2_less less, nghttp2_mem *mem);
62 * Deallocates any resources allocated for |pq|. The stored items are
65 void nghttp2_pq_free(nghttp2_pq *pq);
68 * Adds |item| to the priority queue |pq|.
76 int nghttp2_pq_push(nghttp2_pq *pq, nghttp2_pq_entry *item);
79 * Returns item at the top of the queue |pq|. If the queue is empty,
82 nghttp2_pq_entry *nghttp2_pq_top(nghttp2_pq *pq);
85 * Pops item at the top of the queue |pq|. The popped item is not
88 void nghttp2_pq_pop(nghttp2_pq *pq);
91 * Returns nonzero if the queue |pq| is empty.
93 int nghttp2_pq_empty(nghttp2_pq *pq);
96 * Returns the number of items in the queue |pq|.
98 size_t nghttp2_pq_size(nghttp2_pq *pq);
103 * Updates each item in |pq| using function |fun| and re-construct
108 void nghttp2_pq_update(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg);
111 * Applies |fun| to each item in |pq|. The |arg| is passed as arg
117 int nghttp2_pq_each(nghttp2_pq *pq, nghttp2_pq_item_cb fun, void *arg);
122 void nghttp2_pq_remove(nghttp2_pq *pq, nghttp2_pq_entry *item);