mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
Formatting.
This commit is contained in:
@@ -168,7 +168,8 @@ pub unsafe fn park_timeout(&self, timeout: Duration) {
|
||||
};
|
||||
|
||||
// Wait for unpark() to produce this event.
|
||||
let unparked = c::NtWaitForKeyedEvent(handle, self.ptr(), 0, &mut timeout) == c::STATUS_SUCCESS;
|
||||
let unparked =
|
||||
c::NtWaitForKeyedEvent(handle, self.ptr(), 0, &mut timeout) == c::STATUS_SUCCESS;
|
||||
|
||||
// Set the state back to EMPTY (from either PARKED or NOTIFIED).
|
||||
let prev_state = self.state.swap(EMPTY, Acquire);
|
||||
|
||||
Reference in New Issue
Block a user