From 13b3e4af8a419f39b139d716ae45acb51750e787 Mon Sep 17 00:00:00 2001 From: Ștefan Talpalaru Date: Mon, 20 May 2019 09:29:13 +0200 Subject: fixes #11275 (#11276) --- tests/parallel/tconvexhull.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/parallel/tconvexhull.nim b/tests/parallel/tconvexhull.nim index cc01b5c78..184a131a2 100644 --- a/tests/parallel/tconvexhull.nim +++ b/tests/parallel/tconvexhull.nim @@ -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) -- cgit 1.4.1-2-gfad0