diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-26 16:15:11 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-12-26 16:15:11 +0000 |
commit | 35c72a53b4c6bbc61b4b86db9de629e18362b48d (patch) | |
tree | 50234bfc778bcf933264a4dbb3d2e58a6691c73c /libs/ardour/session.cc | |
parent | b6f4cdaea27fbf49f924b2684d4c638089314067 (diff) |
change the way thread name is managed and accessed; store thread name for JACK thread(s); remove bits of debugging output
git-svn-id: svn://localhost/ardour2/branches/3.0@6399 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index f0d69fec28..d512d49b39 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -425,7 +425,6 @@ Session::destroy () routes.flush (); boost::shared_ptr<RouteList> r = routes.reader (); - cerr << "\n\n\n AFTER ROUTE CLEARING, there are " << r->size() << " routes in RCU\n"; DEBUG_TRACE (DEBUG::Destruction, "delete diskstreams\n"); { @@ -2129,20 +2128,21 @@ Session::add_routes (RouteList& new_routes, bool save) for (RouteList::iterator x = new_routes.begin(); x != new_routes.end(); ++x) { boost::weak_ptr<Route> wpr (*x); + boost::shared_ptr<Route> r (*x); - (*x)->listen_changed.connect_same_thread (*this, boost::bind (&Session::route_listen_changed, this, _1, wpr)); - (*x)->solo_changed.connect_same_thread (*this, boost::bind (&Session::route_solo_changed, this, _1, wpr)); - (*x)->mute_changed.connect_same_thread (*this, boost::bind (&Session::route_mute_changed, this, _1)); - (*x)->output()->changed.connect_same_thread (*this, boost::bind (&Session::set_worst_io_latencies_x, this, _1, _2)); - (*x)->processors_changed.connect_same_thread (*this, boost::bind (&Session::route_processors_changed, this, _1)); - (*x)->route_group_changed.connect_same_thread (*this, boost::bind (&Session::route_group_changed, this)); + r->listen_changed.connect_same_thread (*this, boost::bind (&Session::route_listen_changed, this, _1, wpr)); + r->solo_changed.connect_same_thread (*this, boost::bind (&Session::route_solo_changed, this, _1, wpr)); + r->mute_changed.connect_same_thread (*this, boost::bind (&Session::route_mute_changed, this, _1)); + r->output()->changed.connect_same_thread (*this, boost::bind (&Session::set_worst_io_latencies_x, this, _1, _2)); + r->processors_changed.connect_same_thread (*this, boost::bind (&Session::route_processors_changed, this, _1)); + r->route_group_changed.connect_same_thread (*this, boost::bind (&Session::route_group_changed, this)); - if ((*x)->is_master()) { - _master_out = (*x); + if (r->is_master()) { + _master_out = r; } - if ((*x)->is_control()) { - _control_out = (*x); + if (r->is_control()) { + _control_out = r; } } |