Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make PublishSample an owned type and change output API to 3-step process #87

Closed
wants to merge 2 commits into from

Conversation

phil-opp
Copy link
Collaborator

Instead of passing a closure, we now prepare the output first, then write the data, and finally send it out. This should make it possible to enable zero-copy send operations also in Rust/C operators and C nodes since we avoid the type and lifetime complexity that an additional closure argument would cause.

This is a draft because it reqiures an experimental SampleMutArc interface of iceoryx-rs. I created a PR at eclipse-iceoryx/iceoryx-rs#61 to propose this new Arc-based interface upstream.

@phil-opp phil-opp force-pushed the zero-copy-owned-sample branch 2 times, most recently from d64c9b7 to a5df665 Compare September 28, 2022 12:12
…ocess

Instead of passing a closure, we now `prepare` the output first, then write the data, and finally send it out. This should make it possible to enable zero-copy send operations also in Rust/C operators and C nodes since we avoid the type and lifetime complexity that an additional closure argument would cause.
Base automatically changed from zero-copy to main September 30, 2022 12:25
@haixuanTao haixuanTao mentioned this pull request Oct 7, 2022
@phil-opp phil-opp self-assigned this Oct 11, 2022
@phil-opp phil-opp added this to the v0.1 milestone Oct 11, 2022
@haixuanTao haixuanTao modified the milestones: v0.1, v0.2 Nov 2, 2022
@phil-opp
Copy link
Collaborator Author

This is no longer needed since we're now using dora-daemon instead of iceoryx (see #162).

@phil-opp phil-opp closed this Mar 24, 2023
@haixuanTao haixuanTao deleted the zero-copy-owned-sample branch October 5, 2023 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants