mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
fix SyncSender
spinning behavior
This commit is contained in:
parent
a377893da2
commit
2538c0c170
@ -139,6 +139,6 @@ impl Backoff {
|
||||
/// Returns `true` if quadratic backoff has completed and blocking the thread is advised.
|
||||
#[inline]
|
||||
pub fn is_completed(&self) -> bool {
|
||||
self.step.get() > YIELD_LIMIT
|
||||
self.step.get() > SPIN_LIMIT
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user