File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
library/std/src/sys/windows Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,10 @@ impl Parker {
158
158
// Need to wait for unpark() using NtWaitForKeyedEvent.
159
159
let handle = keyed_event_handle ( ) ;
160
160
161
- // NtWaitForKeyedEvent uses a unit of 100ns, and uses negative values
162
- // to indicate the monotonic clock.
161
+ // NtWaitForKeyedEvent uses a unit of 100ns, and uses negative
162
+ // values to indicate a relative time on the monotonic clock.
163
+ // This is documented here for the underlying KeWaitForSingleObject function:
164
+ // https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-kewaitforsingleobject
163
165
let mut timeout = match i64:: try_from ( ( timeout. as_nanos ( ) + 99 ) / 100 ) {
164
166
Ok ( t) => -t,
165
167
Err ( _) => i64:: MIN ,
You can’t perform that action at this time.
0 commit comments