Chez Scheme: fix a test for weak memory ordering
This commit is contained in:
parent
5cedca2183
commit
a2a456cd2d
|
@ -1438,7 +1438,9 @@
|
|||
(if (odd? i)
|
||||
(let loop () (unless (ftype-lock! A (y) a) (printf "waiting\n") (loop)))
|
||||
(ftype-spin-lock! A (y) a))
|
||||
(memory-order-acquire)
|
||||
(ftype-set! A (x) a ((if (odd? n) + -) (ftype-ref A (x) a) 1.0))
|
||||
(memory-order-release)
|
||||
(ftype-unlock! A (y) a))))))
|
||||
(let loop ()
|
||||
(if (equal? (length ls) n)
|
||||
|
|
Loading…
Reference in New Issue
Block a user