summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-24 23:43:45 -0400
committerOri Bernstein <ori@eigenstate.org>2017-07-24 23:43:45 -0400
commit95f4c0f05fd565bef8fc7933a226ee1f54ae7925 (patch)
tree2b6ffa02a79ac48162963f5b5e27d968ab43e035
parent6643dc05e703fdde67e933f16b7879a62707e13e (diff)
downloadmc-95f4c0f05fd565bef8fc7933a226ee1f54ae7925.tar.gz
Add missing ifle.
-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
+}