+ class ProcessorChangeBlocker {
+ public:
+ ProcessorChangeBlocker (Session* s, bool rc = true)
+ : _session (s)
+ , _reconfigure_on_delete (rc)
+ {
+ g_atomic_int_inc (&s->_ignore_route_processor_changes);
+ }
+ ~ProcessorChangeBlocker () {
+ if (g_atomic_int_dec_and_test (&_session->_ignore_route_processor_changes)) {
+ if (_reconfigure_on_delete) {
+ _session->route_processors_changed (RouteProcessorChange ());
+ }
+ }
+ }
+ private:
+ Session* _session;
+ bool _reconfigure_on_delete;
+ };
+
+ RouteGroup* new_route_group (const std::string&);