@@ -195,7 +195,7 @@ mod keyed_events {
195
195
196
196
pub unsafe fn park ( parker : Pin < & Parker > ) {
197
197
// 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 ( ) ) ;
199
199
// Set the state back to EMPTY (from either PARKED or NOTIFIED).
200
200
// Note that we don't just write EMPTY, but use swap() to also
201
201
// include an acquire-ordered read to synchronize with unpark()'s
@@ -218,7 +218,7 @@ mod keyed_events {
218
218
219
219
// Wait for unpark() to produce this event.
220
220
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 ;
222
222
223
223
// Set the state back to EMPTY (from either PARKED or NOTIFIED).
224
224
let prev_state = parker. state . swap ( EMPTY , Acquire ) ;
@@ -228,7 +228,7 @@ mod keyed_events {
228
228
// was set to NOTIFIED, which means we *just* missed an
229
229
// unpark(), which is now blocked on us to wait for it.
230
230
// 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 ( ) ) ;
232
232
}
233
233
}
234
234
pub unsafe fn unpark ( parker : Pin < & Parker > ) {
@@ -239,7 +239,7 @@ mod keyed_events {
239
239
// To prevent this thread from blocking indefinitely in that case,
240
240
// park_impl() will, after seeing the state set to NOTIFIED after
241
241
// 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 ( ) ) ;
243
243
}
244
244
245
245
fn keyed_event_handle ( ) -> c:: HANDLE {
0 commit comments