From 8e2b36d43d8ec6063344e9f524796493f32084e7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 27 Dec 2021 11:24:21 -0700 Subject: [PATCH] triggerbox: NOOP: add explanatory comment --- libs/ardour/triggerbox.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 93bfa5dc36..737f39c835 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -1834,6 +1834,11 @@ TriggerBox::maybe_swap_pending (uint32_t slot) if (p == Trigger::MagicClearPointerValue) { all_triggers[slot]->clear_region (); } else { + /* Note use of a custom delete function. We cannot + delete the old trigger from the RT context where the + trigger swap will happen, so we will ask the trigger + helper thread to take care of it. + */ all_triggers[slot].reset (p, Trigger::request_trigger_delete); TriggerSwapped (slot); /* EMIT SIGNAL */ }