Update taskpools/chase_lev_deques.nim

Co-authored-by: Etan Kissling <etan@status.im>
This commit is contained in:
Jacek Sieka 2024-01-02 14:22:33 +01:00 committed by GitHub
parent a42345a469
commit a0d21adef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()