summaryrefslogtreecommitdiff
path: root/lib/thread/waitgrp+futex.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread/waitgrp+futex.myr')
-rw-r--r--lib/thread/waitgrp+futex.myr3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/thread/waitgrp+futex.myr b/lib/thread/waitgrp+futex.myr
index 7fbd5eb..701d8f0 100644
--- a/lib/thread/waitgrp+futex.myr
+++ b/lib/thread/waitgrp+futex.myr
@@ -1,7 +1,6 @@
use std
use "atomic"
-use "common"
use "futex"
pkg thread =
@@ -22,7 +21,7 @@ const wgwait = {w
var v = 0
while (v = xget(&w._val)) != 0
- ftxwait(&w._val, v, Zptr)
+ ftxwait(&w._val, v, -1)
;;
}