mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-02 13:03:11 +00:00
segfault
This commit is contained in:
parent
e8a7972ed4
commit
ddfb8a6f69
@ -27,7 +27,7 @@ proc worker(data: ptr Seq[char], sig: ThreadSignalPtr) =
|
||||
discard sig.fireSync()
|
||||
|
||||
proc finalizer(obj: DataObj) =
|
||||
echo "FINALIZE!!"
|
||||
echo "finalize DataObj and freeing mockSeq"
|
||||
obj.mockSeq.data.dealloc()
|
||||
obj.mockSeq.data = nil
|
||||
|
||||
@ -46,7 +46,9 @@ proc runTest(tp: TaskPool, sig: ThreadSignalPtr) {.async.} =
|
||||
echo "spawn worker"
|
||||
tp.spawn worker(addr obj.mockSeq, sig)
|
||||
|
||||
## adding fut.wait(100.milliseconds) creates memory issue
|
||||
await wait(sig).wait(100.milliseconds)
|
||||
# await wait(sig)
|
||||
|
||||
suite "async tests":
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user