File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,23 @@ pub fn check_event(event: Event) -> Result<bool> {
234
234
}
235
235
}
236
236
237
+ /// Removes `event` from any event group to which it belongs and closes it.
238
+ ///
239
+ /// If `event` was registered with `register_protocol_notify`, then the
240
+ /// corresponding registration will be removed. Calling this function within the
241
+ /// corresponding notify function is allowed.
242
+ ///
243
+ /// # Errors
244
+ ///
245
+ /// The specification does not list any errors, however implementations are
246
+ /// allowed to return an error if needed.
247
+ pub fn close_event ( event : Event ) -> Result {
248
+ let bt = boot_services_raw_panicking ( ) ;
249
+ let bt = unsafe { bt. as_ref ( ) } ;
250
+
251
+ unsafe { ( bt. close_event ) ( event. as_ptr ( ) ) } . to_result ( )
252
+ }
253
+
237
254
/// Sets the trigger for an event of type [`TIMER`].
238
255
///
239
256
/// # Errors
You can’t perform that action at this time.
0 commit comments