mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
PBD::Signal<...>::connect() is already thread safe, so drop intermediate proxy/call_slot() invocation in handling Controllable::Changed within AutomationController
This commit is contained in:
parent
81bbeb51ea
commit
419006dd83
2 changed files with 1 additions and 9 deletions
|
|
@ -120,7 +120,7 @@ AutomationController::AutomationController(boost::shared_ptr<Automatable>
|
||||||
_screen_update_connection = Timers::rapid_connect (
|
_screen_update_connection = Timers::rapid_connect (
|
||||||
sigc::mem_fun (*this, &AutomationController::display_effective_value));
|
sigc::mem_fun (*this, &AutomationController::display_effective_value));
|
||||||
|
|
||||||
ac->Changed.connect (_changed_connection, invalidator (*this), boost::bind (&AutomationController::value_changed, this), gui_context());
|
ac->Changed.connect (_changed_connection, invalidator (*this), boost::bind (&AutomationController::display_effective_value, this), gui_context());
|
||||||
|
|
||||||
add(*_widget);
|
add(*_widget);
|
||||||
show_all();
|
show_all();
|
||||||
|
|
@ -334,12 +334,6 @@ AutomationController::on_button_release(GdkEventButton* ev)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
AutomationController::value_changed ()
|
|
||||||
{
|
|
||||||
Gtkmm2ext::UI::instance()->call_slot (invalidator (*this), boost::bind (&AutomationController::display_effective_value, this));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Stop updating our value from our controllable */
|
/** Stop updating our value from our controllable */
|
||||||
void
|
void
|
||||||
AutomationController::stop_updating ()
|
AutomationController::stop_updating ()
|
||||||
|
|
|
||||||
|
|
@ -93,8 +93,6 @@ private:
|
||||||
void set_freq_beats(double beats);
|
void set_freq_beats(double beats);
|
||||||
bool on_button_release(GdkEventButton* ev);
|
bool on_button_release(GdkEventButton* ev);
|
||||||
|
|
||||||
void value_changed();
|
|
||||||
|
|
||||||
Gtk::Widget* _widget;
|
Gtk::Widget* _widget;
|
||||||
boost::shared_ptr<ARDOUR::Automatable> _printer;
|
boost::shared_ptr<ARDOUR::Automatable> _printer;
|
||||||
boost::shared_ptr<ARDOUR::AutomationControl> _controllable;
|
boost::shared_ptr<ARDOUR::AutomationControl> _controllable;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue