summaryrefslogtreecommitdiff
path: root/lib/thread
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-23 23:28:34 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-25 22:22:50 -0700
commita2ff9547b25b4c44d8e9095659bd282a2b4e160e (patch)
treecbf3118d1add1581684c7c72a3090a1b3ffdbb95 /lib/thread
parentcc99dfdb5dbb27ac3fed40c796a01a4269d307c2 (diff)
downloadmc-a2ff9547b25b4c44d8e9095659bd282a2b4e160e.tar.gz
New parallel mbld.
Diffstat (limited to 'lib/thread')
-rw-r--r--lib/thread/ncpu.myr10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/thread/ncpu.myr b/lib/thread/ncpu.myr
new file mode 100644
index 0000000..c22f868
--- /dev/null
+++ b/lib/thread/ncpu.myr
@@ -0,0 +1,10 @@
+use std
+use sys
+
+pkg thread =
+ const ncpu : (-> int)
+;;
+
+const ncpu = {
+ -> 1
+}