From 1341e18cacd526f4aca831e5ce633d02f93df5a5 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 14 Feb 2020 18:42:45 +0100 Subject: [PATCH] Fix potential deadlock (session-template with latent procs) --- libs/ardour/session_state.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 87584ce89c..73d65ba7b6 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -325,6 +325,9 @@ Session::post_engine_init () for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { (*i)->configure_processors (0); } + /* release process-lock, ProcessorChangeBlocker may trigger + * latency-callback from non-rt thread which may take the lock */ + lx.release (); } /* Reset all panners */