mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 09:32:42 +00:00
std: sys: xous: clamp condvar wait_timeout instead of truncating dur.as_millis() (u128) was cast straight to usize, so on 32-bit xous any timeout over ~49 days truncated, and an exact multiple of 2^32 ms became 0 and then 1ms via the "don't wait forever" guard. Saturate the conversion, matching sys/sync/thread_parking/xous.rs.