summaryrefslogtreecommitdiff
path: root/lib/thread/test/atomic.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread/test/atomic.myr')
-rw-r--r--lib/thread/test/atomic.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/thread/test/atomic.myr b/lib/thread/test/atomic.myr
index a6f72c6..97cf448 100644
--- a/lib/thread/test/atomic.myr
+++ b/lib/thread/test/atomic.myr
@@ -15,13 +15,13 @@ const main = {
while thread.xget(&done) != Nherd
/* nothing */
;;
- std.assert(val == 20_000_000, "atomics are broken\n")
+ std.assert(val == 2_000_000, "atomics are broken\n")
}
const incvar = {
var i
- for i = 0; i < 1_000_000; i++
+ for i = 0; i < 100_000; i++
thread.xadd(&val, 1)
;;
std.write(1, "done\n")