Skip to content

Commit

Permalink
remove trailing whitespace
Browse files Browse the repository at this point in the history
remove trailing whitespace
  • Loading branch information
Pslydhh committed Jun 2, 2018
1 parent 7da469d commit 151e41f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/libstd/thread/mod.rs
Expand Up @@ -796,10 +796,10 @@ pub fn park() {
let mut m = thread.inner.lock.lock().unwrap();
match thread.inner.state.compare_exchange(EMPTY, PARKED, SeqCst, SeqCst) {
Ok(_) => {}
Err(NOTIFIED) => {
Err(NOTIFIED) => {
// should consume this notification, so prohibit spurious wakeups in next park...
thread.inner.state.store(EMPTY, SeqCst);
return;
thread.inner.state.store(EMPTY, SeqCst);
return;
}, // notified after we locked
Err(_) => panic!("inconsistent park state"),
}
Expand Down Expand Up @@ -886,10 +886,10 @@ pub fn park_timeout(dur: Duration) {
let m = thread.inner.lock.lock().unwrap();
match thread.inner.state.compare_exchange(EMPTY, PARKED, SeqCst, SeqCst) {
Ok(_) => {}
Err(NOTIFIED) => {
Err(NOTIFIED) => {
// should consume this notification, so prohibit spurious wakeups in next park...
thread.inner.state.store(EMPTY, SeqCst);
return;
thread.inner.state.store(EMPTY, SeqCst);
return;
}, // notified after we locked
Err(_) => panic!("inconsistent park_timeout state"),
}
Expand Down

0 comments on commit 151e41f

Please sign in to comment.