diff --git a/src/sync/mutex.rs b/src/sync/mutex.rs index 14617919e6..b4e5b1e998 100644 --- a/src/sync/mutex.rs +++ b/src/sync/mutex.rs @@ -45,7 +45,7 @@ pub(crate) unsafe fn manual_lock_generic(word: &AtomicInt) { } pub(crate) unsafe fn manual_unlock_generic(word: &AtomicInt) { if word.swap(UNLOCKED, Ordering::Release) == WAITING { - crate::sync::futex_wake(word, 1); + crate::sync::futex_wake(word, i32::MAX); } }