Skip to content

is it possible to keep the chunk safely after publish it? #981

Answered by elfenpiff
wxtry asked this question in Q&A
Discussion options

You must be logged in to vote

@wxtry The answer is currently that we do not support keeping the sample after publishing.
The problems can result in a data race when some subscriber would like to read the sample while you are modifying it on the publisher side. Here we would require a mechanism to either provide exclusive read or write access to either the publisher or the subscriber.

Normally, one would implement such a thing with a mutex but just imagine what happens when a subscriber dies while holding the mutex. Then the subscriber can deadlock the publisher as well which violates our freedom of interference principle which is required in a safety critical environment. So the solution will be a little bit more comp…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wxtry
Comment options

Answer selected by wxtry
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