This commit is contained in:
Ștefan Talpalaru 2019-05-20 09:29:13 +02:00 • committed by Andreas Rumpf
commit 13b3e4af8a
2 changed files with 22 additions and 3 deletions

View file

@ -52,6 +52,8 @@ proc convex_hull[T](points: var seq[T], cmp: proc(x, y: T): int {.closure.}) : s
result = concat(^ul[0], ^ul[1])
var s = map(toSeq(0..99999), proc(x: int): Point = (float(x div 1000), float(x mod 1000)))
# On some runs, this pool size reduction will set the "shutdown" attribute on the
# worker thread that executes our spawned task, before we can read the flowvars.
setMaxPoolSize 2
#echo convex_hull[Point](s, cmpPoint)