mirror of
https://github.com/status-im/nim-taskpools.git
synced 2025-02-20 09:49:01 +00:00
Update taskpools/chase_lev_deques.nim
Co-authored-by: Mamy Ratsimbazafy <mamy_github@numforge.co>
This commit is contained in:
parent
cd6a2ad372
commit
7c0395cf22
@ -85,7 +85,7 @@ proc newBuf(T: typedesc, capacity: int): ptr Buf[T] =
|
|||||||
zero = true
|
zero = true
|
||||||
)
|
)
|
||||||
|
|
||||||
# result.prevRetired = nil
|
result.prevRetired = nil
|
||||||
result.capacity = capacity
|
result.capacity = capacity
|
||||||
result.mask = capacity - 1
|
result.mask = capacity - 1
|
||||||
# result.rawBuffer.addr.zeroMem(sizeof(T)*capacity)
|
# result.rawBuffer.addr.zeroMem(sizeof(T)*capacity)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user