Formatting.
This commit is contained in:
parent
13f166a9e6
commit
03fb61cfef
1 changed files with 2 additions and 1 deletions
|
@ -168,7 +168,8 @@ impl Parker {
|
|||
};
|
||||
|
||||
// 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue