From ddd6f6d6c605a39f974c18586e5924b11219a785 Mon Sep 17 00:00:00 2001 From: Hayodea Hakol Date: Tue, 16 Sep 2025 18:45:55 -0400 Subject: [PATCH] CompThr: Comment on posted CBs --- smocore/componentThread.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/smocore/componentThread.cpp b/smocore/componentThread.cpp index cb4ff79..32d3af5 100644 --- a/smocore/componentThread.cpp +++ b/smocore/componentThread.cpp @@ -119,7 +119,14 @@ public: void callOriginalCbFn(void) { - if (originalCbFn) { + if (originalCbFn) + { + /** EXPLANATION: + * This is only permissible because originalCbFn doesn't take any + * further arguments. If we had to bind argument to it before + * posting it, we'd have to std::bind them and then post the + * resulting function object. + */ caller->getIoService().post(originalCbFn); } }