summaryrefslogtreecommitdiff
path: root/lib/thread
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread')
-rw-r--r--lib/thread/bld.sub3
-rw-r--r--lib/thread/mutex+freebsd.myr1
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/thread/bld.sub b/lib/thread/bld.sub
index 73a07cc..378e17f 100644
--- a/lib/thread/bld.sub
+++ b/lib/thread/bld.sub
@@ -27,5 +27,8 @@ lib thread =
atomic-impl+x64.s
atomic.myr
+
+ lib ../sys:sys
+ lib ../std:std
;;
diff --git a/lib/thread/mutex+freebsd.myr b/lib/thread/mutex+freebsd.myr
index 8e4c10d..7ae2b15 100644
--- a/lib/thread/mutex+freebsd.myr
+++ b/lib/thread/mutex+freebsd.myr
@@ -37,6 +37,7 @@ const mtxlock = {mtx
if c == Unlocked
-> void
;;
+ sys.sched_yield()
;;
/*