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 New Issue
Block a user