@@ -195,7 +195,7 @@ mod keyed_events {
195195
196196 pub unsafe fn park ( parker : Pin < & Parker > ) {
197197 // Wait for unpark() to produce this event.
198- c:: NtWaitForKeyedEvent ( keyed_event_handle ( ) , parker. ptr ( ) , 0 , ptr:: null_mut ( ) ) ;
198+ c:: NtWaitForKeyedEvent ( keyed_event_handle ( ) , parker. ptr ( ) , false , ptr:: null_mut ( ) ) ;
199199 // Set the state back to EMPTY (from either PARKED or NOTIFIED).
200200 // Note that we don't just write EMPTY, but use swap() to also
201201 // include an acquire-ordered read to synchronize with unpark()'s
@@ -218,7 +218,7 @@ mod keyed_events {
218218
219219 // Wait for unpark() to produce this event.
220220 let unparked =
221- c:: NtWaitForKeyedEvent ( handle, parker. ptr ( ) , 0 , & mut timeout) == c:: STATUS_SUCCESS ;
221+ c:: NtWaitForKeyedEvent ( handle, parker. ptr ( ) , false , & mut timeout) == c:: STATUS_SUCCESS ;
222222
223223 // Set the state back to EMPTY (from either PARKED or NOTIFIED).
224224 let prev_state = parker. state . swap ( EMPTY , Acquire ) ;
@@ -228,7 +228,7 @@ mod keyed_events {
228228 // was set to NOTIFIED, which means we *just* missed an
229229 // unpark(), which is now blocked on us to wait for it.
230230 // Wait for it to consume the event and unblock that thread.
231- c:: NtWaitForKeyedEvent ( handle, parker. ptr ( ) , 0 , ptr:: null_mut ( ) ) ;
231+ c:: NtWaitForKeyedEvent ( handle, parker. ptr ( ) , false , ptr:: null_mut ( ) ) ;
232232 }
233233 }
234234 pub unsafe fn unpark ( parker : Pin < & Parker > ) {
@@ -239,7 +239,7 @@ mod keyed_events {
239239 // To prevent this thread from blocking indefinitely in that case,
240240 // park_impl() will, after seeing the state set to NOTIFIED after
241241 // waking up, call NtWaitForKeyedEvent again to unblock us.
242- c:: NtReleaseKeyedEvent ( keyed_event_handle ( ) , parker. ptr ( ) , 0 , ptr:: null_mut ( ) ) ;
242+ c:: NtReleaseKeyedEvent ( keyed_event_handle ( ) , parker. ptr ( ) , false , ptr:: null_mut ( ) ) ;
243243 }
244244
245245 fn keyed_event_handle ( ) -> c:: HANDLE {
0 commit comments