13#ifndef IOX2_WAITSET_HPP
14#define IOX2_WAITSET_HPP
33template <ServiceType S>
52 iox2_waitset_guard_h m_handle =
nullptr;
79 auto hash() const -> std::
size_t;
84 friend auto
run_callback(iox2_waitset_attachment_id_h,
void*) -> iox2_callback_progression_e;
94 iox2_waitset_attachment_id_h m_handle =
nullptr;
217 auto
len() const -> uint64_t;
285 explicit
WaitSet(iox2_waitset_h handle);
288 iox2_waitset_h m_handle =
nullptr;
298#ifdef DOXYGEN_MACRO_FIX
316 template <ServiceType>
321 iox2_waitset_builder_h m_handle =
nullptr;
#define IOX2_BUILDER_OPTIONAL(type, name)
Abstract class that can be implemented by a class that is based on a [FileDescriptor].
Represents the receiving endpoint of an event based communication.
Represents an attachment to the [WaitSet].
auto has_missed_deadline(const WaitSetGuard< S > &guard) const -> bool
Returns true if the deadline for the attachment corresponding to [WaitSetGuard] was missed.
auto operator=(const WaitSetAttachmentId &rhs) -> WaitSetAttachmentId &=delete
friend auto run_callback(iox2_waitset_attachment_id_h, void *) -> iox2_callback_progression_e
auto operator=(WaitSetAttachmentId &&rhs) noexcept -> WaitSetAttachmentId &
WaitSetAttachmentId(WaitSetAttachmentId &&rhs) noexcept
auto hash() const -> std::size_t
Returns the a non-secure hash for the [WaitSetAttachmentId].
auto has_event_from(const WaitSetGuard< S > &guard) const -> bool
WaitSetAttachmentId(const WaitSetAttachmentId &rhs)=delete
static auto from_guard(const WaitSetGuard< S > &guard) -> WaitSetAttachmentId
auto create() &&-> bb::Expected< WaitSet< S >, WaitSetCreateError >
Creates the [WaitSet].
WaitSetBuilder(const WaitSetBuilder &)=delete
auto signal_handling_mode(const SignalHandlingMode value) -> decltype(auto)
auto operator=(const WaitSetBuilder &) -> WaitSetBuilder &=delete
WaitSetBuilder(WaitSetBuilder &&rhs) noexcept
auto operator=(WaitSetBuilder &&rhs) noexcept -> WaitSetBuilder &
friend class WaitSetAttachmentId
WaitSetGuard(WaitSetGuard &&) noexcept
auto attach_interval(iox2::bb::Duration deadline) -> bb::Expected< WaitSetGuard< S >, WaitSetAttachmentError >
WaitSet(const WaitSet &)=delete
auto wait_and_process(const iox2::bb::StaticFunction< CallbackProgression(WaitSetAttachmentId< S >)> &fn_call) -> bb::Expected< WaitSetRunResult, WaitSetRunError >
auto signal_handling_mode() const -> SignalHandlingMode
Returns the [SignalHandlingMode] with which the [WaitSet] was created.
auto operator=(const WaitSet &) -> WaitSet &=delete
auto attach_notification(const Listener< S > &listener) -> bb::Expected< WaitSetGuard< S >, WaitSetAttachmentError >
auto attach_deadline(const Listener< S > &listener, iox2::bb::Duration deadline) -> bb::Expected< WaitSetGuard< S >, WaitSetAttachmentError >
auto capacity() const -> uint64_t
Returns the capacity of the [WaitSet].
WaitSet(WaitSet &&) noexcept
auto wait_and_process_once_with_timeout(const iox2::bb::StaticFunction< CallbackProgression(WaitSetAttachmentId< S >)> &fn_call, iox2::bb::Duration timeout) -> bb::Expected< WaitSetRunResult, WaitSetRunError >
auto len() const -> uint64_t
Returns the number of attachments.
auto wait_and_process_once(const iox2::bb::StaticFunction< CallbackProgression(WaitSetAttachmentId< S >)> &fn_call) -> bb::Expected< WaitSetRunResult, WaitSetRunError >
auto is_empty() const -> bool
Returns true if the [WaitSet] has no attachments, otherwise false.
friend class WaitSetBuilder
iox2::bb::variation::Expected< T, E > Expected
WaitSetRunResult
States why the [WaitSet::run()] method returned.
WaitSetRunError
Defines the failures that can occur when calling [WaitSet::run()].
WaitSetCreateError
Defines the failures that can occur when calling [WaitSetBuilder::create()].