Skip to content

How the producer/consumers are being managed? #89

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

You must be logged in to vote

@kanekoshoyu The problem is that the destructors of all resources must be called, therefore you need to register a ctrl_c handler or something comparable.

The simplest thing is that you use the iceoryx2

while let Iox2Event::Tick = Iox2::wait(CYCLE_TIME) {
  //  your code
}

which does it for you. Also, please do not kill the application with kill -9 so that they loose the ability to clean up their resources.

We will add this to the FAQ and also move the stale resource cleanup functionality to the top of our priority list. So in the next release, whenever your application detects that resources exist from a previous instance which no longer exists, it will clean them up.

Replies: 1 comment 1 reply

Comment options

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

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