mirror of
https://github.com/rust-lang/rust
synced 2024-10-17 05:53:41 +00:00
fix SyncSender
spinning behavior
This commit is contained in:
parent
a377893da2
commit
2538c0c170
|
@ -139,6 +139,6 @@ pub fn snooze(&self) {
|
|||
/// 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 a new issue