Skip to content

TransmissionData complex data structures #159

Closed Answered by elBoberido
antaradey-itk asked this question in Q&A
Discussion options

You must be logged in to vote

There are restriction on the data which can be used in shared-memory for zero-copy inter-process communication. I'm not sure whether we already documented it for iceoryx2 but it is basically the same as for iceoryx1 https://github.com/eclipse-iceoryx/iceoryx/blob/master/doc/website/getting-started/overview.md#restrictions. Furthermore the structs should be repr(C) to prevent issues due to reordering of fields.

We plan to create a trait similar to Send and a derive macro which checks whether a struct contains only fields which can be used in shared-memory. It will probably be done for the v0.3 or v0.4 release.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@antaradey-itk
Comment options

Answer selected by elfenpiff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants