Lines Matching defs:pq
58 static void tnode_unschedule(nghttp3_tnode *tnode, nghttp3_pq *pq) {
61 nghttp3_pq_remove(pq, &tnode->pe);
65 void nghttp3_tnode_unschedule(nghttp3_tnode *tnode, nghttp3_pq *pq) {
70 tnode_unschedule(tnode, pq);
73 static uint64_t pq_get_first_cycle(nghttp3_pq *pq) {
76 if (nghttp3_pq_empty(pq)) {
80 top = nghttp3_struct_of(nghttp3_pq_top(pq), nghttp3_tnode, pe);
84 int nghttp3_tnode_schedule(nghttp3_tnode *tnode, nghttp3_pq *pq,
89 tnode->cycle = pq_get_first_cycle(pq) +
94 if (!nghttp3_pri_uint8_inc(tnode->pri) || nghttp3_pq_size(pq) == 1) {
98 nghttp3_pq_remove(pq, &tnode->pe);
105 return nghttp3_pq_push(pq, &tnode->pe);