bugfix: fixed memory leaks in osproc module

This commit is contained in:
Araq 2011-11-18 22:14:32 +01:00
commit a497b4d1cf
7 changed files with 185 additions and 127 deletions

13
tests/threads/tactors.nim Normal file
View 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()