13
0

triggerbox: add explanatory comment about how the triggerbox thread quit msg works

This commit is contained in:
Paul Davis 2021-12-18 09:35:10 -07:00
parent afd8554b43
commit c3a48ff9c9

View File

@ -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;