| 431 | |
| 432 | |
| 433 | int h2_iq_shift(h2_iqueue *q) |
| 434 | { |
| 435 | int sid; |
| 436 | |
| 437 | if (q->nelts <= 0) { |
| 438 | return 0; |
| 439 | } |
| 440 | |
| 441 | sid = q->elts[q->head]; |
| 442 | q->head = (q->head + 1) % q->nalloc; |
| 443 | q->nelts--; |
| 444 | |
| 445 | return sid; |
| 446 | } |
| 447 | |
| 448 | size_t h2_iq_mshift(h2_iqueue *q, int *pint, size_t max) |
| 449 | { |
no outgoing calls
no test coverage detected