@@ -283,7 +283,7 @@ pub unsafe extern "C" fn iox2_waitset_capacity(handle: iox2_waitset_h_ref) -> c_
283
283
}
284
284
}
285
285
286
- /// Stops the current [`iox2_waitset_wait_and_process_events ()`] operation. Any [`iox2_waitset_wait_and_process_events ()`]
286
+ /// Stops the current [`iox2_waitset_wait_and_process ()`] operation. Any [`iox2_waitset_wait_and_process ()`]
287
287
/// call after this call is not affected and the user needs to call
288
288
/// [`iox2_waitset_stop()`] again.
289
289
///
@@ -305,7 +305,7 @@ pub unsafe extern "C" fn iox2_waitset_stop(handle: iox2_waitset_h_ref) {
305
305
306
306
/// Attaches a provided [`iox2_file_descriptor_ptr`] as notification to the
307
307
/// [`iox2_waitset_h`]. As soon as the attachment receives data, the WaitSet
308
- /// wakes up in [`iox2_waitset_wait_and_process_events ()`] and informs the user.
308
+ /// wakes up in [`iox2_waitset_wait_and_process ()`] and informs the user.
309
309
///
310
310
/// With [`iox2_waitset_attachment_id_has_event_from()`](crate::iox2_waitset_attachment_id_has_event_from())
311
311
/// the origin of the event can be determined from its corresponding
@@ -381,7 +381,7 @@ pub unsafe extern "C" fn iox2_waitset_attach_notification(
381
381
382
382
/// Attaches a provided [`iox2_file_descriptor_ptr`] as deadline to the
383
383
/// [`iox2_waitset_h`]. As soon as the attachment receives data or the deadline
384
- /// was missed, the WaitSet wakes up in [`iox2_waitset_wait_and_process_events ()`] and informs the user.
384
+ /// was missed, the WaitSet wakes up in [`iox2_waitset_wait_and_process ()`] and informs the user.
385
385
///
386
386
/// With [`iox2_waitset_attachment_id_has_event_from()`](crate::iox2_waitset_attachment_id_has_event_from())
387
387
/// the origin of the event can be determined from its corresponding
@@ -469,7 +469,7 @@ pub unsafe extern "C" fn iox2_waitset_attach_deadline(
469
469
}
470
470
471
471
/// Attaches an interval to the [`iox2_waitset_h`]. As soon as the interval has passed
472
- /// the WaitSet wakes up in [`iox2_waitset_wait_and_process_events ()`] and informs the user.
472
+ /// the WaitSet wakes up in [`iox2_waitset_wait_and_process ()`] and informs the user.
473
473
///
474
474
/// With [`iox2_waitset_attachment_id_has_event_from()`](crate::iox2_waitset_attachment_id_has_event_from())
475
475
/// the origin of the event can be determined from its corresponding
@@ -568,7 +568,7 @@ pub unsafe extern "C" fn iox2_waitset_attach_interval(
568
568
/// * the provided [`iox2_waitset_attachment_id_h`] in the callback must be released via
569
569
/// [`iox2_waitset_attachment_id_drop()`](crate::iox2_waitset_attachment_id_drop())
570
570
#[ no_mangle]
571
- pub unsafe extern "C" fn iox2_waitset_try_wait_and_process_events (
571
+ pub unsafe extern "C" fn iox2_waitset_try_wait_and_process (
572
572
handle : iox2_waitset_h_ref ,
573
573
callback : iox2_waitset_run_callback ,
574
574
callback_ctx : iox2_callback_context ,
@@ -583,7 +583,7 @@ pub unsafe extern "C" fn iox2_waitset_try_wait_and_process_events(
583
583
. value
584
584
. as_ref ( )
585
585
. ipc
586
- . try_wait_and_process_events ( |attachment_id| {
586
+ . try_wait_and_process ( |attachment_id| {
587
587
let attachment_id_ptr = iox2_waitset_attachment_id_t:: alloc ( ) ;
588
588
( * attachment_id_ptr) . init (
589
589
waitset. service_type ,
@@ -599,7 +599,7 @@ pub unsafe extern "C" fn iox2_waitset_try_wait_and_process_events(
599
599
. value
600
600
. as_ref ( )
601
601
. local
602
- . try_wait_and_process_events ( |attachment_id| {
602
+ . try_wait_and_process ( |attachment_id| {
603
603
let attachment_id_ptr = iox2_waitset_attachment_id_t:: alloc ( ) ;
604
604
( * attachment_id_ptr) . init (
605
605
waitset. service_type ,
@@ -643,7 +643,7 @@ pub unsafe extern "C" fn iox2_waitset_try_wait_and_process_events(
643
643
/// * the provided [`iox2_waitset_attachment_id_h`] in the callback must be released via
644
644
/// [`iox2_waitset_attachment_id_drop()`](crate::iox2_waitset_attachment_id_drop())
645
645
#[ no_mangle]
646
- pub unsafe extern "C" fn iox2_waitset_wait_and_process_events (
646
+ pub unsafe extern "C" fn iox2_waitset_wait_and_process (
647
647
handle : iox2_waitset_h_ref ,
648
648
callback : iox2_waitset_run_callback ,
649
649
callback_ctx : iox2_callback_context ,
@@ -655,28 +655,26 @@ pub unsafe extern "C" fn iox2_waitset_wait_and_process_events(
655
655
let waitset = & mut * handle. as_type ( ) ;
656
656
657
657
let run_result = match waitset. service_type {
658
- iox2_service_type_e:: IPC => {
659
- waitset
660
- . value
661
- . as_ref ( )
662
- . ipc
663
- . wait_and_process_events ( |attachment_id| {
664
- let attachment_id_ptr = iox2_waitset_attachment_id_t:: alloc ( ) ;
665
- ( * attachment_id_ptr) . init (
666
- waitset. service_type ,
667
- AttachmentIdUnion :: new_ipc ( attachment_id) ,
668
- iox2_waitset_attachment_id_t:: dealloc,
669
- ) ;
670
- let attachment_id_handle_ptr = ( * attachment_id_ptr) . as_handle ( ) ;
671
- callback ( attachment_id_handle_ptr, callback_ctx) ;
672
- } )
673
- }
658
+ iox2_service_type_e:: IPC => waitset
659
+ . value
660
+ . as_ref ( )
661
+ . ipc
662
+ . wait_and_process ( |attachment_id| {
663
+ let attachment_id_ptr = iox2_waitset_attachment_id_t:: alloc ( ) ;
664
+ ( * attachment_id_ptr) . init (
665
+ waitset. service_type ,
666
+ AttachmentIdUnion :: new_ipc ( attachment_id) ,
667
+ iox2_waitset_attachment_id_t:: dealloc,
668
+ ) ;
669
+ let attachment_id_handle_ptr = ( * attachment_id_ptr) . as_handle ( ) ;
670
+ callback ( attachment_id_handle_ptr, callback_ctx) ;
671
+ } ) ,
674
672
iox2_service_type_e:: LOCAL => {
675
673
waitset
676
674
. value
677
675
. as_ref ( )
678
676
. local
679
- . wait_and_process_events ( |attachment_id| {
677
+ . wait_and_process ( |attachment_id| {
680
678
let attachment_id_ptr = iox2_waitset_attachment_id_t:: alloc ( ) ;
681
679
( * attachment_id_ptr) . init (
682
680
waitset. service_type ,
0 commit comments