Skip to navigation

holoscan::channel_internal::InlinePayloadWaitSet

Beta
View as MarkdownOpen in Claude

Multiplex private subscriber readiness without exposing backend handles.

The facade retains shared backend wait state and is neither copyable nor movable. Each attachment independently retains that backend and its subscriber port, so attachments may outlive the facade, and one subscriber binding may be attached only once. Setup and wait operations are externally serialized while the facade is live; a successful warmed wait copies results only into caller-provided bounded storage.

#include <holoscan/channel_internal/endpoint_interfaces.hpp>

Constructors

InlinePayloadWaitSet

holoscan::channel_internal::InlinePayloadWaitSet::InlinePayloadWaitSet() = default

Construct an empty private wait set before backend initialization.

Destructor

~InlinePayloadWaitSet

virtual HOLOSCAN_CORE_EXPORT holoscan::channel_internal::InlinePayloadWaitSet::~InlinePayloadWaitSet()

Release the facade’s backend reference; subscriber attachments may retain it longer.


Assignment operators

operator=

The following overloads are deleted to prevent misuse:

InlinePayloadWaitSet & holoscan::channel_internal::InlinePayloadWaitSet::operator=(const InlinePayloadWaitSet &) = delete;
InlinePayloadWaitSet & holoscan::channel_internal::InlinePayloadWaitSet::operator=(InlinePayloadWaitSet &&) = delete;

Methods

attach

virtual expected<std::uint64_t, Error> holoscan::channel_internal::InlinePayloadWaitSet::attach(
WaitSetSubscriber &subscriber
)

Attach one event-enabled subscriber and return its wait-set-local identity.

Returns: Stable wait-set-local identity, or a checked setup error.

Parameters

subscriber
WaitSetSubscriber &

Subscriber whose backend port is retained by the attachment.

wait_for

virtual expected<bool, Error> holoscan::channel_internal::InlinePayloadWaitSet::wait_for(
std::chrono::nanoseconds timeout
) noexcept

Perform one bounded kernel wait.

Returns: True when the backend reported a possible readiness event, false on timeout, or a checked wait error.

Parameters

timeout
std::chrono::nanoseconds

Maximum duration to block.

ready_handles

virtual expected<std::size_t, Error> holoscan::channel_internal::InlinePayloadWaitSet::ready_handles(
std::span<std::uint64_t> destination
) const noexcept

Copy ready wait identities into preallocated destination storage.

Returns: Number of copied identities, or ErrorCode::kResourceExhausted when the destination is too small.

Parameters

destination
std::span<std::uint64_t>

Storage for identities reported by the most recent successful wait.