mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
fix deadlock when removing subgroup bus w/sends.
...and potentially other route removals that involve processor changes.
This commit is contained in:
parent
696b89b71a
commit
159d23be9f
1 changed files with 5 additions and 2 deletions
|
|
@ -2064,6 +2064,10 @@ Session::resort_routes ()
|
|||
return;
|
||||
}
|
||||
|
||||
if (_route_deletion_in_progress) {
|
||||
return;
|
||||
}
|
||||
|
||||
{
|
||||
RCUWriter<RouteList> writer (routes);
|
||||
boost::shared_ptr<RouteList> r = writer.get_copy ();
|
||||
|
|
@ -3363,9 +3367,8 @@ Session::add_internal_send (boost::shared_ptr<Route> dest, boost::shared_ptr<Pro
|
|||
void
|
||||
Session::remove_routes (boost::shared_ptr<RouteList> routes_to_remove)
|
||||
{
|
||||
PBD::Unwinder<bool> uw_flag (_route_deletion_in_progress, true);
|
||||
|
||||
{ // RCU Writer scope
|
||||
PBD::Unwinder<bool> uw_flag (_route_deletion_in_progress, true);
|
||||
RCUWriter<RouteList> writer (routes);
|
||||
boost::shared_ptr<RouteList> rs = writer.get_copy ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue