summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/thread/bld.sub2
-rw-r--r--lib/thread/mutex+freebsd.myr4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/thread/bld.sub b/lib/thread/bld.sub
index ccb1a56..72e8e26 100644
--- a/lib/thread/bld.sub
+++ b/lib/thread/bld.sub
@@ -8,7 +8,7 @@ lib thread =
exit+linux-x64.s
# freebsd impl of thread primitives
- condvar+freebsd.myr
+ #condvar+freebsd.myr
mutex+freebsd.myr
spawn+freebsd.myr
exit+freebsd-x64.s
diff --git a/lib/thread/mutex+freebsd.myr b/lib/thread/mutex+freebsd.myr
index 61ba275..8e4c10d 100644
--- a/lib/thread/mutex+freebsd.myr
+++ b/lib/thread/mutex+freebsd.myr
@@ -35,7 +35,7 @@ const mtxlock = {mtx
for var i = 0; i < nspin; i++
c = xcas(&mtx._state, Unlocked, Locked)
if c == Unlocked
- ->
+ -> void
;;
;;
@@ -71,7 +71,7 @@ const mtxunlock = {mtx
if mtx._state == Contended
mtx._state = Unlocked
elif xchg(&mtx._state, Unlocked) == Locked
- ->
+ -> void
;;
/* wake all threads: for some reason nwake */