Adds the Rust-version of a more complex event-driven communication example. The idea is that the publisher and subscriber emit explicitly a user-defined event whenever they do something like connect/disconnect/sent sample/receive sample/request history etc. Based on that example a C++ example will follow in a follow up PR. In the example the ports are part of a more generic ExamplePublisher or ExampleSubscriber that also contain an notifier/listener to wait or emit events that are related to them. It also provides a first preview how a high-level iceoryx2 API could look like, where the event notification and the message transport are no longer separated.
Fixes a Bug in the WaitSet where it went into an infinite loop after the first deadline/interval has passed. The only thing here missing was to store the last time missed_deadlines was called in the deadline queue.
Pre-Review Checklist for the PR Author
[x] Add sensible notes for the reviewer
[x] PR title is short, expressive and meaningful
[x] Relevant issues are linked in the References section
[x] Every source code file has a copyright header with SPDX-License-Identifier: Apache-2.0 OR MIT
[x] Branch follows the naming format (iox2-123-introduce-posix-ipc-example)
[x] Commits messages are according to this guideline
[x] Commit messages have the issue ID ([#123] Add posix ipc example)
Notes for Reviewer
ExamplePublisher
orExampleSubscriber
that also contain an notifier/listener to wait or emit events that are related to them. It also provides a first preview how a high-level iceoryx2 API could look like, where the event notification and the message transport are no longer separated.WaitSet
where it went into an infinite loop after the first deadline/interval has passed. The only thing here missing was to store the last timemissed_deadlines
was called in the deadline queue.Pre-Review Checklist for the PR Author
SPDX-License-Identifier: Apache-2.0 OR MIT
iox2-123-introduce-posix-ipc-example
)[#123] Add posix ipc example
)task-list-completed
)Checklist for the PR Reviewer
Post-review Checklist for the PR Author
References
Relates to #390 Closes #518