Off-by-one error
This commit is contained in:
parent
ec2461b913
commit
e02b5111ad
2
queue.c
2
queue.c
|
@ -139,7 +139,7 @@ static void shoveller(void *qv) {
|
||||||
queue_append(&q->waiter_q, &examined);
|
queue_append(&q->waiter_q, &examined);
|
||||||
enqueue(&q->waiter_q, sub);
|
enqueue(&q->waiter_q, sub);
|
||||||
|
|
||||||
if (burst_count > 10000) {
|
if (burst_count >= 10000) {
|
||||||
end_burst(q, &burst_count, total_count);
|
end_burst(q, &burst_count, total_count);
|
||||||
yield();
|
yield();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue