take read-lock when saving processor order
[ardour.git] / libs / ardour / automation_watch.cc
index e9fecb5973e3467e4d1c767c33c8c3d3b9d5b05e..4152c5d5b7602a5beeec90d40bfe3c34dd384b33 100644 (file)
@@ -47,7 +47,7 @@ AutomationWatch::AutomationWatch ()
        , _last_time (0)
        , _run_thread (false)
 {
-       
+
 }
 
 AutomationWatch::~AutomationWatch ()
@@ -85,7 +85,7 @@ AutomationWatch::add_automation_watch (boost::shared_ptr<AutomationControl> ac)
         * creates reference cycles. we don't need to make the weak_ptr<>
         * explicit here, but it helps to remind us what is going on.
         */
-       
+
        boost::weak_ptr<AutomationControl> wac (ac);
        ac->DropReferences.connect_same_thread (*this, boost::bind (&AutomationWatch::remove_weak_automation_watch, this, wac));
 }
@@ -135,11 +135,11 @@ AutomationWatch::timer ()
                                                                                (*aw)->alist()->automation_write()));
                                (*aw)->list()->set_in_write_pass (false);
                                if ( (*aw)->alist()->automation_write() ) {
-                                       (*aw)->list()->set_in_write_pass (true);
+                                       (*aw)->list()->set_in_write_pass (true, time);
                                }
                        }
                }
-               
+
                _last_time = time;
        }
 
@@ -171,7 +171,7 @@ AutomationWatch::set_session (Session* s)
        if (_session) {
                _run_thread = true;
                _thread = Glib::Threads::Thread::create (boost::bind (&AutomationWatch::thread, this));
-               
+
                _session->TransportStateChange.connect_same_thread (transport_connection, boost::bind (&AutomationWatch::transport_state_change, this));
        }
 }
@@ -184,7 +184,7 @@ AutomationWatch::transport_state_change ()
        }
 
        bool rolling = _session->transport_rolling();
-       
+
        _last_time = _session->audible_frame ();
 
        {