CompThr: Comment on posted CBs

This commit is contained in:
2025-09-16 18:45:55 -04:00
parent f5c359a6a9
commit ddd6f6d6c6
+8 -1
View File
@@ -119,7 +119,14 @@ public:
void callOriginalCbFn(void) 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); caller->getIoService().post(originalCbFn);
} }
} }