Open xfsaid opened 14 hours ago
@xfsaid yes, events are required to achieve this functionality. The listener is the most simple approach and for more complex scenarios, the waitset can be used for event multiplexing. On the producer side, a notifier needs to signal that new data is available. Please have a look at the examples for more details.
In the future there might be an additional, more high level API for generic use cases which does a few things implicitely, like notify on each send. This comes with a cost though, since the pure data transport does not require a context switch but the signaling mechanism does. By having that functionality split into two distict messaging pattern, the user has the option to get the most performance out of iceoryx2.
Currently, subscribers can only obtain messages by calling receive(). Is it necessary to use the Listener and Notifier of the Event module to complete this function?