Lines Matching refs:cycle
35 /* Maximum distance between any two stream's cycle in the same
36 priority queue. Imagine stream A's cycle is A, and stream B's
37 cycle is B, and A < B. The cycle is unsigned 32 bit integer, it
38 may get overflow. Because of how we calculate the next cycle
53 if (lhs->cycle == rhs->cycle) {
57 return rhs->cycle - lhs->cycle <= NGHTTP2_MAX_CYCLE_DISTANCE;
98 stream->cycle = 0;
135 * Returns next cycle for |stream|.
143 stream->cycle = last_cycle + penalty / (uint32_t)stream->weight;
155 DEBUGF("stream: stream=%d obq push cycle=%lu\n", stream->stream_id,
156 stream->cycle);
194 stream->cycle = 0;
241 DEBUGF("stream: stream=%d obq resched cycle=%lu\n", stream->stream_id,
242 stream->cycle);
278 stream->cycle */
284 last_cycle = stream->cycle -
291 if (dep_stream->descendant_last_cycle - stream->cycle <=
293 stream->cycle = dep_stream->descendant_last_cycle;
300 DEBUGF("stream: stream=%d obq resched cycle=%lu\n", stream->stream_id,
301 stream->cycle);
948 si->dep_prev->descendant_last_cycle = si->cycle;