From c3a48ff9c9e0d55fa5b8be42eed4ffb43a760489 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 18 Dec 2021 09:35:10 -0700 Subject: [PATCH] triggerbox: add explanatory comment about how the triggerbox thread quit msg works --- libs/ardour/triggerbox.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index c2c16af924..d4b43ccabd 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -2725,6 +2725,10 @@ TriggerBoxThread::queue_request (Request* req) { char c = req->type; + /* Quit is handled by simply delivering the request type (1 byte), with + * no payload in the FIFO. See ::thread_work() above. + */ + if (req->type != Quit) { if (requests.write (&req, 1) != 1) { return;