Update taskpools/chase_lev_deques.nim
Co-authored-by: Etan Kissling <etan@status.im>
This commit is contained in:
parent
a42345a469
commit
a0d21adef0
|
@ -150,7 +150,7 @@ proc push*[T](deque: var ChaseLevDeque[T], item: T) =
|
|||
# Full queue
|
||||
deque.grow(a, t, b)
|
||||
|
||||
if not deque.garbage.isNil and b == t:
|
||||
elif b-t == 0:
|
||||
# Empty queue, no thieves can have a pointer to an old retired buffer
|
||||
deque.garbageCollect()
|
||||
|
||||
|
|
Loading…
Reference in New Issue