13
0

triggerbox: NOOP: add explanatory comment

This commit is contained in:
Paul Davis 2021-12-27 11:24:21 -07:00
parent 610125b87c
commit 8e2b36d43d

View File

@ -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 */
}