diff options
author | Ori Bernstein <ori@eigenstate.org> | 2016-05-05 23:06:35 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2016-05-05 23:06:35 -0700 |
commit | 4753d76a7b1db9baf88a6b784b785a92ec0958e4 (patch) | |
tree | c61d16f3a162faf907facc43dc3d61ba761d6239 /lib/thread | |
parent | db048ccb7e6b80bcd2f5cf60f409d9b31a21dafe (diff) | |
download | mc-4753d76a7b1db9baf88a6b784b785a92ec0958e4.tar.gz |
Disable condvar.
It seems busted.
Diffstat (limited to 'lib/thread')
-rw-r--r-- | lib/thread/bld.sub | 2 | ||||
-rw-r--r-- | lib/thread/mutex+freebsd.myr | 4 |
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 */ |