1
Fork 0

Formatting.

This commit is contained in:
Mara Bos 2020-10-06 18:46:57 +02:00
parent 13f166a9e6
commit 03fb61cfef

View file

@ -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);