bugfix: fixed memory leaks in osproc module
This commit is contained in:
parent
c9b67f724d
commit
a497b4d1cf
7 changed files with 185 additions and 127 deletions
|
|
@ -1,3 +1,6 @@
|
|||
discard """
|
||||
output: ""
|
||||
"""
|
||||
|
||||
type
|
||||
TMsgKind = enum
|
||||
|
|
@ -18,7 +21,7 @@ proc consume() {.thread.} =
|
|||
x.backTo.send(printedLines)
|
||||
break
|
||||
echo x.data
|
||||
discard atomicInc(printedLines)
|
||||
atomicInc(printedLines)
|
||||
|
||||
proc produce() =
|
||||
var m: TMsg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue