mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
[enqueue_to_workers] only increment wq->writeto when we write #2627
This commit is contained in:
parent
a35d42b0e4
commit
7db7b0150a
@ -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…
x
Reference in New Issue
Block a user