summaryrefslogtreecommitdiff
path: root/lib/thread/spawn+openbsd.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread/spawn+openbsd.myr')
-rw-r--r--lib/thread/spawn+openbsd.myr12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/thread/spawn+openbsd.myr b/lib/thread/spawn+openbsd.myr
new file mode 100644
index 0000000..92cca94
--- /dev/null
+++ b/lib/thread/spawn+openbsd.myr
@@ -0,0 +1,12 @@
+use std
+
+pkg thread =
+ type tid = uint64
+
+ const spawn : (fn : (-> void) -> std.result(tid, byte[:]))
+;;
+
+const spawn = {fn;
+ std.die("threads not supported yet on openbsd\n")
+ -> `std.Fail "not supported"
+}