From 1139b38db5491c4b5736fbf38d533a2875025fce Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 28 Oct 2022 13:06:52 +0200 Subject: [PATCH] Update comment (amend bd339713) --- libs/ardour/graph.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/ardour/graph.cc b/libs/ardour/graph.cc index 65e1b0bfc3..7f8f9a192d 100644 --- a/libs/ardour/graph.cc +++ b/libs/ardour/graph.cc @@ -321,8 +321,6 @@ Graph::run_one () DEBUG_TRACE (DEBUG::ProcessThreads, string_compose ("%1 goes to sleep\n", pthread_name ())); _execution_sem.wait (); - /* update the thread-local tempo map ptr */ - if (g_atomic_int_get (&_terminate)) { return; } @@ -335,6 +333,12 @@ Graph::run_one () _trigger_queue.pop_front (to_run); } + /* Update the thread-local tempo map ptr. + * + * Doing this here is problematic, since it can result in each thread, + * using a different tempo-map in a given cycle. And even different maps + * in the same cycle for different routes. + */ Temporal::TempoMap::fetch (); /* Process the graph-node */