scala-parallel icon indicating copy to clipboard operation
scala-parallel copied to clipboard

Condition correctness

Open alexeyr opened this issue 13 years ago • 1 comments

Shouldn't while loops on lines 18 and 29 of https://github.com/joshcough/scala-parallel/blob/master/src/main/scala/scala/util/concurrent/locks/Condition.scala have !condition instead of condition, so they end when the condition becomes true? Or am I misunderstanding something?

alexeyr avatar Apr 03 '12 10:04 alexeyr

It certainly looks like it. Jorge and I busted this out years ago and then never touched it again, I wouldn't be surprised if it didn't work and was untested. Sorry. :(

joshcough avatar Apr 29 '12 17:04 joshcough