shithub: mc

Download patch

ref: 4753d76a7b1db9baf88a6b784b785a92ec0958e4
parent: db048ccb7e6b80bcd2f5cf60f409d9b31a21dafe
author: Ori Bernstein <ori@eigenstate.org>
date: Thu May 5 19:06:35 EDT 2016

Disable condvar.

	It seems busted.

--- a/lib/thread/bld.sub
+++ b/lib/thread/bld.sub
@@ -8,7 +8,7 @@
 	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
--- a/lib/thread/mutex+freebsd.myr
+++ b/lib/thread/mutex+freebsd.myr
@@ -35,7 +35,7 @@
 	for var i = 0; i < nspin; i++
 		c = xcas(&mtx._state, Unlocked, Locked) 
 		if c == Unlocked
-			->
+			-> void
 		;;
 	;;
 
@@ -71,7 +71,7 @@
 	if mtx._state == Contended
 		mtx._state = Unlocked
 	elif xchg(&mtx._state, Unlocked) == Locked
-		->
+		-> void
 	;;
 
 	/* wake all threads: for some reason nwake */