[enqueue_to_workers] only increment wq->writeto when we write #2627

pull/2629/head
nick black 2 years ago
parent a35d42b0e4
commit 7db7b0150a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -142,9 +142,9 @@ enqueue_to_workers(sixel_engine* eng, qstate* qs){
wq->qstates[wq->writeto] = qs;
++wq->used;
++usecount;
}
if(++wq->writeto == WORKERDEPTH){
wq->writeto = 0;
if(++wq->writeto == WORKERDEPTH){
wq->writeto = 0;
}
}
}
qs->refcount = usecount;

Loading…
Cancel
Save