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
13
tests/threads/tactors.nim
Normal file
13
tests/threads/tactors.nim
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
discard """
|
||||
outputsub: "150"
|
||||
"""
|
||||
|
||||
import actors
|
||||
|
||||
var
|
||||
a: TActorPool[int, void]
|
||||
createActorPool(a)
|
||||
for i in 0 .. < 300:
|
||||
a.spawn(i, proc (x: int) {.thread.} = echo x)
|
||||
a.join()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue