summaryrefslogtreecommitdiff
path: root/lib/thread/test/mutex.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread/test/mutex.myr')
-rw-r--r--lib/thread/test/mutex.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/thread/test/mutex.myr b/lib/thread/test/mutex.myr
index e971490..5a439d7 100644
--- a/lib/thread/test/mutex.myr
+++ b/lib/thread/test/mutex.myr
@@ -18,13 +18,13 @@ const main = {
while thread.xget(&done) != Nherd
/* nothing */
;;
- if val != 100_000 * 20
+ if val != 10_000 * 20
std.fatal("mutexes are broken, got {}\n", val)
;;
}
const incvar = {
- for var i = 0; i < 100_000; i++
+ for var i = 0; i < 10_000; i++
thread.mtxlock(&mtx)
val++
thread.mtxunlock(&mtx)