summaryrefslogtreecommitdiff
path: root/lib/thread
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-25 20:57:13 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-25 22:23:11 -0700
commit710a12397e717608d3ae0886fd41aaa7dac8fb46 (patch)
tree6355b824c7166020d88bc7bab7b9a409751406b6 /lib/thread
parentc04386762c224c031f679e94df910d699b5931a6 (diff)
downloadmc-710a12397e717608d3ae0886fd41aaa7dac8fb46.tar.gz
Update all bootstrapsmbld-rebase
- FreeBSD - Linux - Plan 9 - OSX - OpenBSD - NetBSD
Diffstat (limited to 'lib/thread')
-rw-r--r--lib/thread/bld.sub2
-rw-r--r--lib/thread/spawn+netbsd.myr13
2 files changed, 14 insertions, 1 deletions
diff --git a/lib/thread/bld.sub b/lib/thread/bld.sub
index b1510a5..aef5016 100644
--- a/lib/thread/bld.sub
+++ b/lib/thread/bld.sub
@@ -22,7 +22,7 @@ lib thread =
# netbsd impl of thread primitives
#condvar+netbsd.myr
#mutex+netbsd.myr
- #spawn+netbsd.myr
+ spawn+netbsd.myr
#ncpu+netbsd.myr
#exit+netbsd-x64.s
diff --git a/lib/thread/spawn+netbsd.myr b/lib/thread/spawn+netbsd.myr
new file mode 100644
index 0000000..17a8d40
--- /dev/null
+++ b/lib/thread/spawn+netbsd.myr
@@ -0,0 +1,13 @@
+use std
+
+pkg thread =
+ type tid = uint64
+
+ const spawn : (fn : (-> void) -> std.result(tid, byte[:]))
+;;
+
+const spawn = {fn
+ std.die("unimplemented\n")
+ -> `std.Err "fuck"
+}
+