mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-05 07:03:12 +00:00
switch to release
This commit is contained in:
parent
fe9b6ebc67
commit
7960ed9786
@ -57,7 +57,7 @@ proc incr*[T](a: SharedPtr[T]) =
|
||||
|
||||
proc decr*[T](x: SharedPtr[T]) =
|
||||
if x.container != nil:
|
||||
let res = atomicSubFetch(addr x.container.cnt, 1, ATOMIC_ACQUIRE)
|
||||
let res = atomicSubFetch(addr x.container.cnt, 1, ATOMIC_RELEASE)
|
||||
if res == 0:
|
||||
echoed "SharedPtr: FREE: ", x.container.pointer.repr, " cnt: ", x.container.cnt, " tp: ", $(typeof(T))
|
||||
when compiles(`=destroy`(x[])):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user