diff --git a/library/std/src/sys/xous/thread_parking.rs b/library/std/src/sys/xous/thread_parking.rs index ec1b6d8c79968..872a4f112d551 100644 --- a/library/std/src/sys/xous/thread_parking.rs +++ b/library/std/src/sys/xous/thread_parking.rs @@ -83,7 +83,8 @@ impl Parker { TicktimerScalar::NotifyCondition(self.index(), 1).into(), ) .expect("failed to send NotifyCondition command")[0] - == 1 + != 1 + && self.state.load(Acquire) != EMPTY { // The target thread hasn't yet hit the `WaitForCondition` call. // Yield to let the target thread run some more.