removes tabs
This commit is contained in:
parent
151e41ff0c
commit
b352d2d167
1 changed files with 6 additions and 8 deletions
|
|
@ -797,10 +797,9 @@ pub fn park() {
|
|||
match thread.inner.state.compare_exchange(EMPTY, PARKED, SeqCst, SeqCst) {
|
||||
Ok(_) => {}
|
||||
Err(NOTIFIED) => {
|
||||
// should consume this notification, so prohibit spurious wakeups in next park...
|
||||
thread.inner.state.store(EMPTY, SeqCst);
|
||||
return;
|
||||
}, // notified after we locked
|
||||
thread.inner.state.store(EMPTY, SeqCst);
|
||||
return;
|
||||
} // should consume this notification, so prohibit spurious wakeups in next park.
|
||||
Err(_) => panic!("inconsistent park state"),
|
||||
}
|
||||
loop {
|
||||
|
|
@ -887,10 +886,9 @@ pub fn park_timeout(dur: Duration) {
|
|||
match thread.inner.state.compare_exchange(EMPTY, PARKED, SeqCst, SeqCst) {
|
||||
Ok(_) => {}
|
||||
Err(NOTIFIED) => {
|
||||
// should consume this notification, so prohibit spurious wakeups in next park...
|
||||
thread.inner.state.store(EMPTY, SeqCst);
|
||||
return;
|
||||
}, // notified after we locked
|
||||
thread.inner.state.store(EMPTY, SeqCst);
|
||||
return;
|
||||
} // should consume this notification, so prohibit spurious wakeups in next park.
|
||||
Err(_) => panic!("inconsistent park_timeout state"),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue