Skip to content

Commit

Permalink
[eclipse-iceoryx#547] Move waitset into main iox2 namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Dec 14, 2024
1 parent 201ed64 commit 48e341f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions iceoryx2-ffi/ffi/src/api/waitset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ use crate::{

use super::{iox2_signal_handling_mode_e, AssertNonNullHandle, HandleToType, IntoCInt};
use iceoryx2::{
port::waitset::{
service::{ipc, local},
waitset::{
WaitSet, WaitSetAttachmentError, WaitSetCreateError, WaitSetRunError, WaitSetRunResult,
},
service::{ipc, local},
};
use iceoryx2_bb_derive_macros::StringLiteral;
use iceoryx2_bb_elementary::static_assert::*;
Expand Down
2 changes: 1 addition & 1 deletion iceoryx2-ffi/ffi/src/api/waitset_guard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
use std::mem::ManuallyDrop;

use crate::iox2_service_type_e;
use iceoryx2::port::waitset::WaitSetGuard;
use iceoryx2::service::{ipc, local};
use iceoryx2::waitset::WaitSetGuard;
use iceoryx2_bb_elementary::static_assert::*;
use iceoryx2_ffi_macros::iceoryx2_ffi;

Expand Down
4 changes: 4 additions & 0 deletions iceoryx2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,3 +317,7 @@ pub mod prelude;

#[doc(hidden)]
pub mod testing;

/// Event handling mechanism to wait on multiple [`Listener`](crate::port::listener::Listener)s
/// in one call, realizing the reactor pattern. (Event multiplexer)
pub mod waitset;
3 changes: 0 additions & 3 deletions iceoryx2/src/port/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ pub mod subscriber;
/// Interface to perform cyclic updates to the ports. Required to deliver history to new
/// participants or to perform other management tasks.
pub mod update_connections;
/// Event handling mechanism to wait on multiple [`Listener`](crate::port::listener::Listener)s
/// in one call, realizing the reactor pattern. (Event multiplexer)
pub mod waitset;

use crate::port::port_identifiers::*;
use crate::service;
Expand Down
2 changes: 1 addition & 1 deletion iceoryx2/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
pub use crate::config::Config;
pub use crate::node::{node_name::NodeName, Node, NodeBuilder, NodeState};
pub use crate::port::event_id::EventId;
pub use crate::port::waitset::{WaitSet, WaitSetAttachmentId, WaitSetBuilder, WaitSetGuard};
pub use crate::service::messaging_pattern::MessagingPattern;
pub use crate::service::{
attribute::AttributeSet, attribute::AttributeSpecifier, attribute::AttributeVerifier, ipc,
local, port_factory::publisher::UnableToDeliverStrategy, port_factory::PortFactory,
service_name::ServiceName, Service, ServiceDetails,
};
pub use crate::signal_handling_mode::SignalHandlingMode;
pub use crate::waitset::{WaitSet, WaitSetAttachmentId, WaitSetBuilder, WaitSetGuard};
pub use iceoryx2_bb_derive_macros::PlacementDefault;
pub use iceoryx2_bb_elementary::alignment::Alignment;
pub use iceoryx2_bb_elementary::placement_default::PlacementDefault;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion iceoryx2/tests/waitset_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ mod waitset {

use iceoryx2::port::listener::Listener;
use iceoryx2::port::notifier::Notifier;
use iceoryx2::port::waitset::{WaitSetAttachmentError, WaitSetRunError};
use iceoryx2::prelude::{WaitSetBuilder, *};
use iceoryx2::testing::*;
use iceoryx2::waitset::{WaitSetAttachmentError, WaitSetRunError};
use iceoryx2_bb_posix::config::test_directory;
use iceoryx2_bb_posix::directory::Directory;
use iceoryx2_bb_posix::file::Permission;
Expand Down

0 comments on commit 48e341f

Please sign in to comment.