Allow checking if handlers are registered in Listener
For our migration to rsb we need some sort of functionality provided by the
rsb::Listener which allows us to check if there are any handlers registered. In earlier version we used the
rsb::Listener::Impl which has been removed recently (rsb-cpp|de636d55). So we would like to have at least some kind of
bool hasHandlers() available.
#6 Updated by J. Moringen almost 8 years ago
We discussed the proposed change and would like to make the following suggestions:
- Please change the signature to
const std::set<HandlerPtr> getHandlers() const
getHandlersshould be thread-safe
- Keeping a local copy of the set of handlers in the
Listenershould be avoided. The set of handlers is stored in the event-processing layer.
- Please open a separate issue for