summaryrefslogtreecommitdiff
path: root/lib/thread/util.myr
blob: 15d8bbb038146706eff6a88940230c9969a6b25a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use std
use thread

pkg thrtestutil =
	const mkherd : (n : uint32, fn : (-> void) ->void)
;;

const mkherd = {n, fn
	for var i = 0; i < n; i++
		std.try(thread.spawn(fn))
	;;
}